| library test; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:46:50: Error: The constructor returns type 'A<int, dynamic>' that isn't of expected type 'A<int, String>'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // Change the type of the object being constructed or the context in which it is used. |
| // a4 = /*error:INVALID_CAST_NEW_EXPR*/ new A<int, dynamic>(3, "hello"); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:48:50: Error: The constructor returns type 'A<dynamic, dynamic>' that isn't of expected type 'A<int, String>'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // Change the type of the object being constructed or the context in which it is used. |
| // a5 = /*error:INVALID_CAST_NEW_EXPR*/ new A<dynamic, dynamic>.named( |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:53:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ "hello", |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:54:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:56:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ "hello", |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:57:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:65:47: Error: A value of type 'B<String, dynamic>' can't be assigned to a variable of type 'A<int, String>'. |
| // - 'B' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // a4 = /*error:INVALID_ASSIGNMENT*/ new B<String, dynamic>("hello", 3); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:67:47: Error: A value of type 'B<dynamic, dynamic>' can't be assigned to a variable of type 'A<int, String>'. |
| // - 'B' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // a5 = /*error:INVALID_ASSIGNMENT*/ new B<dynamic, dynamic>.named( |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:72:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3, |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:73:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ "hello"); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:75:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3, |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:76:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ "hello"); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:83:55: Error: A value of type 'C<dynamic>' can't be assigned to a variable of type 'A<int, int>'. |
| // - 'C' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // A<int, int> a4 = /*error:INVALID_ASSIGNMENT*/ new C<dynamic>(3); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:84:55: Error: A value of type 'C<dynamic>' can't be assigned to a variable of type 'A<int, int>'. |
| // - 'C' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // A<int, int> a5 = /*error:INVALID_ASSIGNMENT*/ new C<dynamic>.named(3); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:88:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ "hello"); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:90:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ "hello"); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:98:47: Error: A value of type 'D<num, dynamic>' can't be assigned to a variable of type 'A<int, String>'. |
| // - 'D' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // a4 = /*error:INVALID_ASSIGNMENT*/ new D<num, dynamic>("hello"); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:100:47: Error: A value of type 'D<dynamic, dynamic>' can't be assigned to a variable of type 'A<int, String>'. |
| // - 'D' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| // a5 = /*error:INVALID_ASSIGNMENT*/ new D<dynamic, dynamic>.named( |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:105:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:107:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:118:54: Error: A value of type 'String' can't be assigned to a variable of type 'int'. |
| // /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ "hello" |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:121:54: Error: A value of type 'int' can't be assigned to a variable of type 'String'. |
| // /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:129:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ "hello", |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:130:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:134:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| // /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ "hello"); |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class A<S extends core::Object* = dynamic, T extends core::Object* = dynamic> extends core::Object { |
| generic-covariant-impl field self::A::S* x; |
| generic-covariant-impl field self::A::T* y; |
| constructor •(self::A::S* x, self::A::T* y) → self::A<self::A::S*, self::A::T*>* |
| : self::A::x = x, self::A::y = y, super core::Object::•() |
| ; |
| constructor named(self::A::S* x, self::A::T* y) → self::A<self::A::S*, self::A::T*>* |
| : self::A::x = x, self::A::y = y, 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 |
| } |
| class B<S extends core::Object* = dynamic, T extends core::Object* = dynamic> extends self::A<self::B::T*, self::B::S*> { |
| constructor •(self::B::S* y, self::B::T* x) → self::B<self::B::S*, self::B::T*>* |
| : super self::A::•(x, y) |
| ; |
| constructor named(self::B::S* y, self::B::T* x) → self::B<self::B::S*, self::B::T*>* |
| : super self::A::named(x, y) |
| ; |
| } |
| class C<S extends core::Object* = dynamic> extends self::B<self::C::S*, self::C::S*> { |
| constructor •(self::C::S* a) → self::C<self::C::S*>* |
| : super self::B::•(a, a) |
| ; |
| constructor named(self::C::S* a) → self::C<self::C::S*>* |
| : super self::B::named(a, a) |
| ; |
| } |
| class D<S extends core::Object* = dynamic, T extends core::Object* = dynamic> extends self::B<self::D::T*, core::int*> { |
| constructor •(self::D::T* a) → self::D<self::D::S*, self::D::T*>* |
| : super self::B::•(a, 3) |
| ; |
| constructor named(self::D::T* a) → self::D<self::D::S*, self::D::T*>* |
| : super self::B::named(a, 3) |
| ; |
| } |
| class E<S extends core::Object* = dynamic, T extends core::Object* = dynamic> extends self::A<self::C<self::E::S*>*, self::E::T*> { |
| constructor •(self::E::T* a) → self::E<self::E::S*, self::E::T*>* |
| : super self::A::•(null, a) |
| ; |
| } |
| class F<S extends core::Object* = dynamic, T extends core::Object* = dynamic> extends self::A<self::F::S*, self::F::T*> { |
| constructor •(self::F::S* x, self::F::T* y, {core::List<self::F::S*>* a = #C1, core::List<self::F::T*>* b = #C1}) → self::F<self::F::S*, self::F::T*>* |
| : super self::A::•(x, y) |
| ; |
| constructor named(self::F::S* x, self::F::T* y, [self::F::S* a = #C1, self::F::T* b = #C1]) → self::F<self::F::S*, self::F::T*>* |
| : super self::A::•(a, b) |
| ; |
| } |
| static method test() → void { |
| { |
| self::A<core::int*, core::String*>* a0 = new self::A::•<core::int*, core::String*>(3, "hello"); |
| self::A<core::int*, core::String*>* a1 = new self::A::named<core::int*, core::String*>(3, "hello"); |
| self::A<core::int*, core::String*>* a2 = new self::A::•<core::int*, core::String*>(3, "hello"); |
| self::A<core::int*, core::String*>* a3 = new self::A::named<core::int*, core::String*>(3, "hello"); |
| self::A<core::int*, core::String*>* a4 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:46:50: Error: The constructor returns type 'A<int, dynamic>' that isn't of expected type 'A<int, String>'. |
| - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| Change the type of the object being constructed or the context in which it is used. |
| a4 = /*error:INVALID_CAST_NEW_EXPR*/ new A<int, dynamic>(3, \"hello\"); |
| ^" in new self::A::•<core::int*, dynamic>(3, "hello"); |
| self::A<core::int*, core::String*>* a5 = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:48:50: Error: The constructor returns type 'A<dynamic, dynamic>' that isn't of expected type 'A<int, String>'. |
| - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| Change the type of the object being constructed or the context in which it is used. |
| a5 = /*error:INVALID_CAST_NEW_EXPR*/ new A<dynamic, dynamic>.named( |
| ^" in new self::A::named<dynamic, dynamic>(3, "hello"); |
| } |
| { |
| self::A<core::int*, core::String*>* a0 = new self::A::•<core::int*, core::String*>(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:53:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", |
| ^" in "hello" as{TypeError} core::int*, let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:54:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); |
| ^" in 3 as{TypeError} core::String*); |
| self::A<core::int*, core::String*>* a1 = new self::A::named<core::int*, core::String*>(let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:56:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", |
| ^" in "hello" as{TypeError} core::int*, let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:57:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); |
| ^" in 3 as{TypeError} core::String*); |
| } |
| { |
| self::A<core::int*, core::String*>* a0 = new self::B::•<core::String*, core::int*>("hello", 3); |
| self::A<core::int*, core::String*>* a1 = new self::B::named<core::String*, core::int*>("hello", 3); |
| self::A<core::int*, core::String*>* a2 = new self::B::•<core::String*, core::int*>("hello", 3); |
| self::A<core::int*, core::String*>* a3 = new self::B::named<core::String*, core::int*>("hello", 3); |
| self::A<core::int*, core::String*>* a4 = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:65:47: Error: A value of type 'B<String, dynamic>' can't be assigned to a variable of type 'A<int, String>'. |
| - 'B' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| a4 = /*error:INVALID_ASSIGNMENT*/ new B<String, dynamic>(\"hello\", 3); |
| ^" in new self::B::•<core::String*, dynamic>("hello", 3) as{TypeError} self::A<core::int*, core::String*>*; |
| self::A<core::int*, core::String*>* a5 = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:67:47: Error: A value of type 'B<dynamic, dynamic>' can't be assigned to a variable of type 'A<int, String>'. |
| - 'B' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| a5 = /*error:INVALID_ASSIGNMENT*/ new B<dynamic, dynamic>.named( |
| ^" in new self::B::named<dynamic, dynamic>("hello", 3) as{TypeError} self::A<core::int*, core::String*>*; |
| } |
| { |
| self::A<core::int*, core::String*>* a0 = new self::B::•<core::String*, core::int*>(let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:72:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3, |
| ^" in 3 as{TypeError} core::String*, let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:73:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); |
| ^" in "hello" as{TypeError} core::int*); |
| self::A<core::int*, core::String*>* a1 = new self::B::named<core::String*, core::int*>(let final Never* #t11 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:75:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3, |
| ^" in 3 as{TypeError} core::String*, let final Never* #t12 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:76:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); |
| ^" in "hello" as{TypeError} core::int*); |
| } |
| { |
| self::A<core::int*, core::int*>* a0 = new self::C::•<core::int*>(3); |
| self::A<core::int*, core::int*>* a1 = new self::C::named<core::int*>(3); |
| self::A<core::int*, core::int*>* a2 = new self::C::•<core::int*>(3); |
| self::A<core::int*, core::int*>* a3 = new self::C::named<core::int*>(3); |
| self::A<core::int*, core::int*>* a4 = let final Never* #t13 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:83:55: Error: A value of type 'C<dynamic>' can't be assigned to a variable of type 'A<int, int>'. |
| - 'C' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| A<int, int> a4 = /*error:INVALID_ASSIGNMENT*/ new C<dynamic>(3); |
| ^" in new self::C::•<dynamic>(3) as{TypeError} self::A<core::int*, core::int*>*; |
| self::A<core::int*, core::int*>* a5 = let final Never* #t14 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:84:55: Error: A value of type 'C<dynamic>' can't be assigned to a variable of type 'A<int, int>'. |
| - 'C' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| A<int, int> a5 = /*error:INVALID_ASSIGNMENT*/ new C<dynamic>.named(3); |
| ^" in new self::C::named<dynamic>(3) as{TypeError} self::A<core::int*, core::int*>*; |
| } |
| { |
| self::A<core::int*, core::int*>* a0 = new self::C::•<core::int*>(let final Never* #t15 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:88:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); |
| ^" in "hello" as{TypeError} core::int*); |
| self::A<core::int*, core::int*>* a1 = new self::C::named<core::int*>(let final Never* #t16 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:90:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); |
| ^" in "hello" as{TypeError} core::int*); |
| } |
| { |
| self::A<core::int*, core::String*>* a0 = new self::D::•<dynamic, core::String*>("hello"); |
| self::A<core::int*, core::String*>* a1 = new self::D::named<dynamic, core::String*>("hello"); |
| self::A<core::int*, core::String*>* a2 = new self::D::•<core::int*, core::String*>("hello"); |
| self::A<core::int*, core::String*>* a3 = new self::D::named<core::String*, core::String*>("hello"); |
| self::A<core::int*, core::String*>* a4 = let final Never* #t17 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:98:47: Error: A value of type 'D<num, dynamic>' can't be assigned to a variable of type 'A<int, String>'. |
| - 'D' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| a4 = /*error:INVALID_ASSIGNMENT*/ new D<num, dynamic>(\"hello\"); |
| ^" in new self::D::•<core::num*, dynamic>("hello") as{TypeError} self::A<core::int*, core::String*>*; |
| self::A<core::int*, core::String*>* a5 = let final Never* #t18 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:100:47: Error: A value of type 'D<dynamic, dynamic>' can't be assigned to a variable of type 'A<int, String>'. |
| - 'D' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. |
| a5 = /*error:INVALID_ASSIGNMENT*/ new D<dynamic, dynamic>.named( |
| ^" in new self::D::named<dynamic, dynamic>("hello") as{TypeError} self::A<core::int*, core::String*>*; |
| } |
| { |
| self::A<core::int*, core::String*>* a0 = new self::D::•<dynamic, core::String*>(let final Never* #t19 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:105:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); |
| ^" in 3 as{TypeError} core::String*); |
| self::A<core::int*, core::String*>* a1 = new self::D::named<dynamic, core::String*>(let final Never* #t20 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:107:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); |
| ^" in 3 as{TypeError} core::String*); |
| } |
| { |
| self::A<self::C<core::int*>*, core::String*>* a0 = new self::E::•<core::int*, core::String*>("hello"); |
| } |
| { |
| self::A<core::int*, core::String*>* a0 = new self::F::•<core::int*, core::String*>(3, "hello", a: core::_GrowableList::_literal1<core::int*>(3), b: core::_GrowableList::_literal1<core::String*>("hello")); |
| self::A<core::int*, core::String*>* a1 = new self::F::•<core::int*, core::String*>(3, "hello", a: core::_GrowableList::_literal1<core::int*>(let final Never* #t21 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:118:54: Error: A value of type 'String' can't be assigned to a variable of type 'int'. |
| /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" |
| ^" in "hello" as{TypeError} core::int*), b: core::_GrowableList::_literal1<core::String*>(let final Never* #t22 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:121:54: Error: A value of type 'int' can't be assigned to a variable of type 'String'. |
| /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 |
| ^" in 3 as{TypeError} core::String*)); |
| self::A<core::int*, core::String*>* a2 = new self::F::named<core::int*, core::String*>(3, "hello", 3, "hello"); |
| self::A<core::int*, core::String*>* a3 = new self::F::named<core::int*, core::String*>(3, "hello"); |
| self::A<core::int*, core::String*>* a4 = new self::F::named<core::int*, core::String*>(3, "hello", let final Never* #t23 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:129:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", |
| ^" in "hello" as{TypeError} core::int*, let final Never* #t24 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:130:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); |
| ^" in 3 as{TypeError} core::String*); |
| self::A<core::int*, core::String*>* a5 = new self::F::named<core::int*, core::String*>(3, "hello", let final Never* #t25 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:134:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. |
| /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); |
| ^" in "hello" as{TypeError} core::int*); |
| } |
| } |
| static method main() → dynamic {} |
| |
| constants { |
| #C1 = null |
| } |