4b7d256a06
This reverts commite9ca6a5335andd3e00fd35e. Change-Id: I346d6156be19c4fceffa202a7ce9bfa931c7c14b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99560 Reviewed-by: Sigmund Cherem <sigmund@google.com> Reviewed-by: Vijay Menon <vsm@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
55 lines
2.0 KiB
Plaintext
55 lines
2.0 KiB
Plaintext
library test;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/inference/infer_method_missing_params.dart:23:8: Error: Can't infer a type for 'y' as some of the inherited members have different types.
|
|
// Try adding an explicit type.
|
|
// f(x, y);
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/inference/infer_method_missing_params.dart:25:9: Error: Can't infer a type for 'y' as some of the inherited members have different types.
|
|
// Try adding an explicit type.
|
|
// h(x, {y});
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/inference/infer_method_missing_params.dart:24:9: Error: Can't infer a type for 'y' as some of the inherited members have different types.
|
|
// Try adding an explicit type.
|
|
// g(x, [y]);
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/inference/infer_method_missing_params.dart:23:3: Error: The method 'C.f' has more required arguments than those of overridden method 'B.f'.
|
|
// f(x, y);
|
|
// ^
|
|
// pkg/front_end/testcases/inference/infer_method_missing_params.dart:17:7: Context: This is the overridden method ('f').
|
|
// int f(int x);
|
|
// ^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
abstract class A extends core::Object {
|
|
synthetic constructor •() → self::A
|
|
: super core::Object::•()
|
|
;
|
|
abstract method f(core::int x, core::int y) → core::int;
|
|
abstract method g(core::int x, [core::int y = null]) → core::int;
|
|
abstract method h(core::int x, {core::int y = null}) → core::int;
|
|
}
|
|
abstract class B extends core::Object {
|
|
synthetic constructor •() → self::B
|
|
: super core::Object::•()
|
|
;
|
|
abstract method f(core::int x) → core::int;
|
|
abstract method g(core::int x) → core::int;
|
|
abstract method h(core::int x) → core::int;
|
|
}
|
|
abstract class C extends core::Object implements self::A, self::B {
|
|
synthetic constructor •() → self::C
|
|
: super core::Object::•()
|
|
;
|
|
abstract method f(core::int x, dynamic y) → core::int;
|
|
abstract method g(core::int x, [dynamic y = null]) → core::int;
|
|
abstract method h(core::int x, {dynamic y = null}) → core::int;
|
|
}
|
|
static method main() → dynamic {}
|