blob: 36d9d8f76a56fccbc74ae6d9eef31e6de525e0ae [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/inference/conflicting_fields.dart:18:7: Error: Can't infer a return type for 'field1' as some of the inherited members have different types.
// Try adding an explicit type.
// get field1 => null;
// ^^^^^^
//
// pkg/front_end/testcases/inference/conflicting_fields.dart:20:14: Error: Can't infer a type for 'value' as some of the inherited members have different types.
// Try adding an explicit type.
// set field1(value) {}
// ^^^^^
//
// pkg/front_end/testcases/inference/conflicting_fields.dart:19:7: Error: Can't infer a return type for 'field2' as some of the inherited members have different types.
// Try adding an explicit type.
// get field2 => null;
// ^^^^^^
//
// pkg/front_end/testcases/inference/conflicting_fields.dart:21:14: Error: Can't infer a type for 'value' as some of the inherited members have different types.
// Try adding an explicit type.
// set field2(value) {}
// ^^^^^
//
import self as self;
import "dart:core" as core;
class A extends core::Object {
field dynamic field1;
field core::int* field2;
synthetic constructor •() self::A*
;
}
class I extends core::Object {
field core::int* field1;
field dynamic field2;
synthetic constructor •() self::I*
;
}
class B extends self::A implements self::I {
synthetic constructor •() self::B*
;
get field1() invalid-type
;
get field2() invalid-type
;
set field1(invalid-type value) void
;
set field2(invalid-type value) void
;
}
static method main() dynamic
;