blob: 3838b0695937512e075e7fb0e84e48125da752ed [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 local constants and classes.
* @author
const Z = 'Zombie';
class A {
const A();
class B<T> {
const B();
const B.b(T t);
class Foo {
const Foo(int x, int y);
enum E {a, b, c}
class Test1{}
const _b10 = const B<int>.b(10);
@A() @B() @_b10 @E.c
class Test2{}
class Test3{}
@B() @Z @E.b
class Test4{}
const _ba = const B<String>.b('aaa');
class Test5{}
main() {