| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/regress/issue_35258.dart:13:3: Error: 'C' is already declared in this scope. |
| // C(this.d) {} |
| // ^ |
| // pkg/front_end/testcases/regress/issue_35258.dart:12:3: Context: Previous declaration of 'C'. |
| // C() {} |
| // ^ |
| // |
| // pkg/front_end/testcases/regress/issue_35258.dart:6:7: Error: Can't use 'C' because it is declared more than once. |
| // new C(42); |
| // ^ |
| // |
| // pkg/front_end/testcases/regress/issue_35258.dart:10:9: Error: Final field 'd' is not initialized. |
| // Try to initialize the field in the declaration or in every constructor. |
| // final d; |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class C extends core::Object { |
| final field dynamic d = null; |
| constructor •() → self::C* |
| : super core::Object::•() {} |
| } |
| static method main() → dynamic { |
| throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#C1, 32, #C2, core::List::unmodifiable<dynamic>(<dynamic>[42]), core::Map::unmodifiable<core::Symbol*, dynamic>(#C4))); |
| } |
| |
| constants { |
| #C1 = #C |
| #C2 = <core::Type*>[] |
| #C3 = <dynamic>[] |
| #C4 = core::_ImmutableMap<core::Symbol*, dynamic> {_kvPairs:#C3} |
| } |