library; // // Problems in library: // // pkg/front_end/testcases/extensions/extension_setter_error.dart:13:41: Error: A value of type 'GenericClass' can't be assigned to a variable of type 'GenericClass'. // - 'GenericClass' is from 'pkg/front_end/testcases/extensions/extension_setter_error.dart'. // expect(null, GenericExtension(genericClass).setter = null); // ^ // import self as self; import "dart:core" as core; class GenericClass extends core::Object { synthetic constructor •() → self::GenericClass* : super core::Object::•() ; abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode abstract member-signature method toString() → core::String*; -> core::Object::toString abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } extension GenericExtension on self::GenericClass* { set setter = self::GenericExtension|set#setter; } static method GenericExtension|set#setter(lowered final self::GenericClass* #this, self::GenericExtension|set#setter::T* value) → void {} static method error() → dynamic { self::GenericClass* genericClass = new self::GenericClass::•(); self::expect(null, let final self::GenericClass* #t1 = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/extensions/extension_setter_error.dart:13:41: Error: A value of type 'GenericClass' can't be assigned to a variable of type 'GenericClass'. - 'GenericClass' is from 'pkg/front_end/testcases/extensions/extension_setter_error.dart'. expect(null, GenericExtension(genericClass).setter = null); ^" in genericClass as{TypeError} self::GenericClass* in let final Null #t3 = null in let final void #t4 = self::GenericExtension|set#setter(#t1, #t3) in #t3); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!expected.{core::Object::==}(actual)) { throw "Mismatch: expected=${expected}, actual=${actual}"; } }