blob: 70d95a70c562e628f74ee623fecf0ce3b13c7a7e [file] [edit]
library test;
//
// Problems in library:
//
// pkg/front_end/testcases/inference/conflicts_can_happen2.dart:33: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:21:12: Context: This is one of the overridden members.
// final I1 a = throw '';
// ^
// pkg/front_end/testcases/inference/conflicts_can_happen2.dart:25: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
;