| library; |
| import self as self; |
| |
| import "dart:test"; |
| |
| static method main() → dynamic {} |
| |
| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/invalid_patch/patch_lib.dart:9:7: Error: A patch class must have the same number of type variables as its origin class. |
| // class InvalidClassTypeParameterCount1<T> /* Error */ {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // pkg/front_end/testcases/general/invalid_patch/origin_lib.dart:5:7: Context: This is the origin class. |
| // class InvalidClassTypeParameterCount1 {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/general/invalid_patch/patch_lib.dart:12:7: Error: A patch class must have the same number of type variables as its origin class. |
| // class InvalidClassTypeParameterCount2 /* Error */ {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // pkg/front_end/testcases/general/invalid_patch/origin_lib.dart:7:7: Context: This is the origin class. |
| // class InvalidClassTypeParameterCount2<T> {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/general/invalid_patch/patch_lib.dart:15:7: Error: A patch class must have the same number of type variables as its origin class. |
| // class InvalidClassTypeParameterCount3<T> /* Error */ {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // pkg/front_end/testcases/general/invalid_patch/origin_lib.dart:9:7: Context: This is the origin class. |
| // class InvalidClassTypeParameterCount3<T, S> {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/general/invalid_patch/patch_lib.dart:18:11: Error: A patch extension must have the same number of type variables as its origin extension. |
| // extension InvalidExtensionTypeParameterCount1<T> on int /* Error */ {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // pkg/front_end/testcases/general/invalid_patch/origin_lib.dart:11:11: Context: This is the origin extension. |
| // extension InvalidExtensionTypeParameterCount1 on int {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/general/invalid_patch/patch_lib.dart:21:11: Error: A patch extension must have the same number of type variables as its origin extension. |
| // extension InvalidExtensionTypeParameterCount2 on int /* Error */ {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // pkg/front_end/testcases/general/invalid_patch/origin_lib.dart:13:11: Context: This is the origin extension. |
| // extension InvalidExtensionTypeParameterCount2<T> on int {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/general/invalid_patch/patch_lib.dart:24:11: Error: A patch extension must have the same number of type variables as its origin extension. |
| // extension InvalidExtensionTypeParameterCount3<T> on int /* Error */ {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // pkg/front_end/testcases/general/invalid_patch/origin_lib.dart:15:11: Context: This is the origin extension. |
| // extension InvalidExtensionTypeParameterCount3<T, S> on int {} |
| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| // |
| import self as self2; |
| import "dart:_internal" as _in; |
| import "dart:core" as core; |
| |
| import "dart:_internal"; |
| |
| @/* from org-dartlang-testcase:///patch_lib.dart */ #C1 |
| class InvalidClassTypeParameterCount1 extends core::Object { |
| synthetic constructor •() → self2::InvalidClassTypeParameterCount1 |
| : super core::Object::•() |
| ; |
| } |
| @/* from org-dartlang-testcase:///patch_lib.dart */ #C1 |
| class InvalidClassTypeParameterCount2<T extends core::Object? = dynamic> extends core::Object { |
| synthetic constructor •() → self2::InvalidClassTypeParameterCount2<self2::InvalidClassTypeParameterCount2::T%> |
| : super core::Object::•() |
| ; |
| } |
| @/* from org-dartlang-testcase:///patch_lib.dart */ #C1 |
| class InvalidClassTypeParameterCount3<T extends core::Object? = dynamic, S extends core::Object? = dynamic> extends core::Object { |
| synthetic constructor •() → self2::InvalidClassTypeParameterCount3<self2::InvalidClassTypeParameterCount3::T%, self2::InvalidClassTypeParameterCount3::S%> |
| : super core::Object::•() |
| ; |
| } |
| @/* from org-dartlang-testcase:///patch_lib.dart */ #C1 |
| extension InvalidExtensionTypeParameterCount1 on core::int { |
| } |
| @/* from org-dartlang-testcase:///patch_lib.dart */ #C1 |
| extension InvalidExtensionTypeParameterCount2<T extends core::Object? = dynamic> on core::int { |
| } |
| @/* from org-dartlang-testcase:///patch_lib.dart */ #C1 |
| extension InvalidExtensionTypeParameterCount3<T extends core::Object? = dynamic, S extends core::Object? = dynamic> on core::int { |
| } |
| |
| constants { |
| #C1 = _in::_Patch {} |
| } |