blob: 3ecf21ffefb942708b5bbe1b37470f6451ad15a0 [file] [log] [blame] [edit]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue43276.dart:6:14: Error: The parameter 'i' can't have a value of 'null' because of its type 'int', but the implicit default value is 'null'.
// Try adding either an explicit non-'null' default value or the 'required' modifier.
// C.gen({int i}); // error
// ^
//
// pkg/front_end/testcases/nnbd/issue43276.dart:8:23: Error: The parameter 'i' can't have a value of 'null' because of its type 'int', but the implicit default value is 'null'.
// Try adding either an explicit non-'null' default value or the 'required' modifier.
// factory C.fact({int i}) /* error */ {
// ^
//
import self as self;
import "dart:core" as core;
class C extends core::Object {
constructor gen({erroneously-initialized core::int i = null}) self::C
;
static factory fact({erroneously-initialized core::int i = null}) self::C
;
static factory redirect({erroneously-initialized core::int i = null}) self::C /* redirection-target: self::C::gen */
return new self::C::gen(i: i);
}
class D extends core::Object {
synthetic constructor •() self::D
;
}
static method main() dynamic
;