| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/extensions/issue44844.dart:7:8: Error: 'foo' is already declared in this scope. |
| // void foo() {} |
| // ^^^ |
| // pkg/front_end/testcases/extensions/issue44844.dart:6:14: Context: Previous declaration of 'foo'. |
| // static int foo = 2; |
| // ^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| extension _extension#0 on core::int { |
| static field foo = self::_extension#0|foo; |
| } |
| static field core::int _extension#0|foo; |
| static method test() → void |
| ; |
| static method main() → dynamic |
| ; |