blob: 22358352a821f9a45131eceb1d579829f8a8702a [file] [log] [blame]
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// @assertion
/// metadata:
/// (‘@’ qualified (‘.’ identifier)? (arguments)?)*
/// ;
/// @description Verify several kinds of valid metadata declarations.
/// Metadata refers to constants and classes imported from library without prefix.
/// @author a.semenov@unipro.ru
import 'syntax_lib1.dart';
@A()
class Test1{}
const _b10 = const B<int>.b(10);
@A() @B() @_b10 @E.c
class Test2{}
@Foo(1,2)
class Test3{}
@B() @X @E.b
class Test4{}
const _ba = const B<String>.b('aaa');
@_ba
class Test5{}
main() {
}