blob: b80758f72dc3fe16c3382badc9044350224ccf22 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general_nnbd_opt_out/mixin_application_inferred_parameter_type.dart:22:13: Error: The argument type 'String' can't be assigned to the parameter type 'int'.
// new Class('');
// ^
//
import self as self;
import "dart:core" as core;
class Mixin extends core::Object {
synthetic constructor •() self::Mixin*
: super core::Object::•()
;
}
class Super extends core::Object {
field core::int* field = 42;
constructor •(core::int* field) self::Super*
: self::Super::field = field, super core::Object::•()
;
}
class Class extends self::Super implements self::Mixin /*isEliminatedMixin*/ {
synthetic constructor •(core::int* field) self::Class*
: super self::Super::•(field)
;
}
static method main() dynamic {
new self::Class::•(0);
}
static method error() dynamic {
new self::Class::•(let final<BottomType> #t1 = invalid-expression "pkg/front_end/testcases/general_nnbd_opt_out/mixin_application_inferred_parameter_type.dart:22:13: Error: The argument type 'String' can't be assigned to the parameter type 'int'.
new Class('');
^" in "" as{TypeError} core::int*);
}