blob: 926252c11302b64c27c56b8ca22c0aac7eb3e61a [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue42603.dart:18:17: Error: Operator '==' should have exactly one parameter.
// bool operator ==() => true;
// ^^
//
// pkg/front_end/testcases/nnbd/issue42603.dart:18:17: Error: The method 'E.==' has fewer positional arguments than those of overridden method 'Object.=='.
// bool operator ==() => true;
// ^
// sdk/lib/_internal/vm/lib/object_patch.dart:21:17: Context: This is the overridden method ('==').
// bool operator ==(Object other) native "Object_equals";
// ^
//
// pkg/front_end/testcases/nnbd/issue42603.dart:22:17: Error: The method 'F.==' has more required arguments than those of overridden method 'E.=='.
// bool operator ==(Object? other) => super == other;
// ^
// pkg/front_end/testcases/nnbd/issue42603.dart:18:17: Context: This is the overridden method ('==').
// bool operator ==() => true;
// ^
//
import self as self;
import "dart:core" as core;
class C extends core::Object {
synthetic constructor •() self::C
;
operator ==(core::Object other) core::bool
;
}
class D extends self::C {
synthetic constructor •() self::D
;
operator ==(core::Object? other) core::bool
;
method method1(dynamic o) core::bool
;
method method2(Null o) core::bool
;
}
class E extends core::Object {
synthetic constructor •() self::E
;
operator ==() core::bool
;
}
class F extends self::E {
synthetic constructor •() self::F
;
operator ==(core::Object? other) core::bool
;
}
static method main() dynamic
;
static method expect(dynamic expected, dynamic actual) dynamic
;