You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
// pkg/front_end/testcases/nnbd/invalid_combined_member_signature.dart:11:16: Error: Type 'Unresolved' not found.
6
+
// void method1(Unresolved c) {}
7
+
// ^^^^^^^^^^
8
+
//
9
+
// pkg/front_end/testcases/nnbd/invalid_combined_member_signature.dart:17:16: Error: Class 'D' inherits multiple members named 'method2' with incompatible signatures.
10
+
// Try adding a declaration of 'method2' to 'D'.
11
+
// abstract class D implements A, B {}
12
+
// ^
13
+
// pkg/front_end/testcases/nnbd/invalid_combined_member_signature.dart:7:8: Context: This is one of the overridden members.
14
+
// void method2(int a, int b) {}
15
+
// ^^^^^^^
16
+
// pkg/front_end/testcases/nnbd/invalid_combined_member_signature.dart:12:8: Context: This is one of the overridden members.
17
+
// void method2(int a) {}
18
+
// ^^^^^^^
19
+
//
20
+
// pkg/front_end/testcases/nnbd/invalid_combined_member_signature.dart:11:16: Error: 'Unresolved' isn't a type.
21
+
// void method1(Unresolved c) {}
22
+
// ^^^^^^^^^^
23
+
//
24
+
import self as self;
25
+
import "dart:core" as core;
26
+
27
+
class A extends core::Object {
28
+
synthetic constructor •() → self::A
29
+
: super core::Object::•()
30
+
;
31
+
method method1(self::C c) → void {}
32
+
method method2(core::int a, core::int b) → void {}
33
+
}
34
+
class B extends core::Object {
35
+
synthetic constructor •() → self::B
36
+
: super core::Object::•()
37
+
;
38
+
method method1(invalid-type c) → void {}
39
+
method method2(core::int a) → void {}
40
+
}
41
+
class C extends core::Object {
42
+
synthetic constructor •() → self::C
43
+
: super core::Object::•()
44
+
;
45
+
}
46
+
abstract class D extends core::Object implements self::A, self::B {
47
+
synthetic constructor •() → self::D
48
+
: super core::Object::•()
49
+
;
50
+
abstract member-signature method method1(invalid-type c) → void; -> self::A::method1
0 commit comments