blob: ecc609dac8664e5af1f3af10f8246d3b68080295 [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:8:11: Context: This is one of the inherited members.
// dynamic field1;
// ^^^^^^
// pkg/front_end/testcases/inference/conflicting_fields.dart:13:7: Context: This is one of the inherited members.
// int field1;
// ^^^^^^
//
// 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:8:11: Context: This is one of the inherited members.
// dynamic field1;
// ^^^^^^
// pkg/front_end/testcases/inference/conflicting_fields.dart:13:7: Context: This is one of the inherited members.
// int field1;
// ^^^^^^
//
// 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:9:7: Context: This is one of the inherited members.
// int field2;
// ^^^^^^
// pkg/front_end/testcases/inference/conflicting_fields.dart:14:11: Context: This is one of the inherited members.
// dynamic field2;
// ^^^^^^
//
// 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) {}
// ^^^^^
// pkg/front_end/testcases/inference/conflicting_fields.dart:9:7: Context: This is one of the inherited members.
// int field2;
// ^^^^^^
// pkg/front_end/testcases/inference/conflicting_fields.dart:14:11: Context: This is one of the inherited members.
// dynamic field2;
// ^^^^^^
//
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
;