Files
sdk/pkg/front_end/testcases/annotation_top.dart
T
Konstantin Shcheglov 1e6c488ef5 Parse annotations for library directives.
R=ahe@google.com, paulberry@google.com, sigmund@google.com

Bug: https://github.com/dart-lang/sdk/issues/30284
Change-Id: I9354e114eb2d603543a964030482af7ac9198760
Reviewed-on: https://dart-review.googlesource.com/12802
Reviewed-by: Peter von der Ahé <ahe@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2017-10-16 17:35:06 +00:00

34 lines
446 B
Dart

// Copyright (c) 2017, 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.
@a
@A(1)
library test;
const Object a = const Object();
class A {
const A(int value);
}
@a
@A(2)
class C {}
@a
@A(2)
typedef void F1();
@a
@A(3)
typedef F2 = void Function();
@a
@A(3)
int f1, f2;
@a
@A(4)
void main() {}