Files
sdk/pkg/front_end/testcases/inference/infer_method_missing_params.dart.strong.expect
T
Sigmund Cherem 4b7d256a06 Revert "Enable constant-update-2018 by default." and "Update .expect files in pkg/front_end after e9ca6a53"
This reverts commit e9ca6a5335 and d3e00fd35e.

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>
2019-04-16 20:20:12 +00:00

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 {}