| // Unhandled errors: |
| // |
| // 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:10:9: Error: Final field 'd' is not initialized. |
| // Try to initialize the field in the declaration or in every constructor. |
| // final d; |
| // ^ |
| |
| library; |
| 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 { |
| let dynamic _ = null in throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#C, 32, const <core::Type>[], core::List::unmodifiable<dynamic>(<dynamic>[42]), core::Map::unmodifiable<core::Symbol, dynamic>(const <core::Symbol, dynamic>{}))); |
| } |