blob: 24991eafaa1b5a4c050e4d255fe0c86b90bc8835 [file] [log] [blame]
library test /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/inference/conflicts_can_happen2.dart:34:7: Error: Can't infer a return type for 'a' as the overridden members don't have a combined signature.
// Try adding an explicit type.
// get a => throw '';
// ^
// pkg/front_end/testcases/inference/conflicts_can_happen2.dart:22:12: Context: This is one of the overridden members.
// final I1 a = throw '';
// ^
// pkg/front_end/testcases/inference/conflicts_can_happen2.dart:26:12: Context: This is one of the overridden members.
// final I2 a = throw '';
// ^
//
import self as self;
import "dart:core" as core;
class I1 extends core::Object {
field core::int x;
synthetic constructor •() self::I1
;
}
class I2 extends core::Object {
field core::int y;
synthetic constructor •() self::I2
;
}
class I3 extends core::Object implements self::I1, self::I2 {
field core::int x;
field core::int y;
synthetic constructor •() self::I3
;
}
class A extends core::Object {
final field self::I1 a;
synthetic constructor •() self::A
;
}
class B extends core::Object {
final field self::I2 a;
synthetic constructor •() self::B
;
}
class C1 extends core::Object implements self::A, self::B {
synthetic constructor •() self::C1
;
get a() self::I3
;
}
class C2 extends core::Object implements self::A, self::B {
synthetic constructor •() self::C2
;
get a() invalid-type
;
}
static method main() dynamic
;