Files
sdk/pkg/front_end/testcases/extensions/annotations_scope.dart
T
Johnni Winther b6b81ebad1 [cfe] Setup correct scope for builder outline expressions on extension fields
Closes https://github.com/dart-lang/sdk/issues/47345

Change-Id: I3a666fde4d6dd802e6101ccbd55dff11c0179fba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215401
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-10-04 12:14:57 +00:00

26 lines
621 B
Dart

// Copyright (c) 2021, 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.
// Test that extension member annotations can access other extension static
// members from the same extension by simple name.
extension E on int {
@constField
static const int constField = 1;
@constField2
static const int constField1 = 2;
@constField1
static const int constField2 = 3;
@constField
static void staticMethod() {}
@constField
void instanceMethod() {}
}
main() {}