library; // // Problems in library: // // pkg/front_end/testcases/general/bug33298.dart:28:44: Error: The argument type 'T Function(T)' can't be assigned to the parameter type 'dynamic Function(String)'. // List list6 = ['a', 'b', 'c'].map(c).toList(); // ^ // import self as self; import "dart:core" as core; class A extends core::Object { synthetic constructor •() → self::A* : super core::Object::•() ; method call(core::String* s) → core::String* return "${s}${s}"; 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 } class B extends core::Object { synthetic constructor •() → self::B* : super core::Object::•() ; method call(generic-covariant-impl self::B::T* t) → self::B::T* return t; 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 } class C extends core::Object { synthetic constructor •() → self::C* : super core::Object::•() ; method call(self::C::call::T* t) → self::C::call::T* return t; 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 } static method test() → dynamic { self::A* a = new self::A::•(); core::List* list1 = ["a", "b", "c"].{core::Iterable::map}(a.{self::A::call}).{core::Iterable::toList}(); core::List* list2 = ["a", "b", "c"].{core::Iterable::map}(let final self::A* #t1 = a in #t1.==(null) ?{(core::String*) →* core::String*} null : #t1.{self::A::call}).{core::Iterable::toList}(); self::B* b = new self::B::•(); core::List* list3 = ["a", "b", "c"].{core::Iterable::map}(b.{self::B::call}).{core::Iterable::toList}(); core::List* list4 = ["a", "b", "c"].{core::Iterable::map}(let final self::B* #t2 = b in #t2.==(null) ?{(core::String*) →* core::String*} null : #t2.{self::B::call}).{core::Iterable::toList}(); self::C* c = new self::C::•(); core::List* list5 = ["a", "b", "c"].{core::Iterable::map}(c.{self::C::call}).{core::Iterable::toList}(); core::List* list6 = ["a", "b", "c"].{core::Iterable::map}(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/bug33298.dart:28:44: Error: The argument type 'T Function(T)' can't be assigned to the parameter type 'dynamic Function(String)'. List list6 = ['a', 'b', 'c'].map(c).toList(); ^" in (let final self::C* #t4 = c in #t4.==(null) ?{(T*) →* T*} null : #t4.{self::C::call}) as{TypeError} (core::String*) →* dynamic).{core::Iterable::toList}() as{TypeError} core::List*; } static method main() → dynamic {}