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
// pkg/front_end/testcases/general/abstract_operator_override.dart:12:7: Error: The implementation of '+' in the non-abstract class 'B' does not conform to its interface.
6
+
// class B extends A {
7
+
// ^
8
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:6:18: Context: The parameter 'b' of the method 'A.+' has type 'B', which does not match the corresponding type, 'A', in the overridden method, 'B.+'.
9
+
// - 'B' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
10
+
// - 'A' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
11
+
// Change to a supertype of 'A', or, for a covariant parameter, a subtype.
12
+
// A operator +(B b) => new A();
13
+
// ^
14
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:13:14: Context: This is the overridden method ('+').
15
+
// A operator +(A a);
16
+
// ^
17
+
//
18
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:12:7: Error: The implementation of 'unary-' in the non-abstract class 'B' does not conform to its interface.
19
+
// class B extends A {
20
+
// ^
21
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:7:14: Context: The return type of the method 'A.unary-' is 'A', which does not match the return type, 'B', of the overridden method, 'B.unary-'.
22
+
// - 'A' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
23
+
// - 'B' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
24
+
// Change to a subtype of 'B'.
25
+
// A operator -() => new A();
26
+
// ^
27
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:14:14: Context: This is the overridden method ('unary-').
28
+
// B operator -();
29
+
// ^
30
+
//
31
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:12:7: Error: The implementation of '[]' in the non-abstract class 'B' does not conform to its interface.
32
+
// class B extends A {
33
+
// ^
34
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:8:19: Context: The parameter 'b' of the method 'A.[]' has type 'B', which does not match the corresponding type, 'A', in the overridden method, 'B.[]'.
35
+
// - 'B' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
36
+
// - 'A' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
37
+
// Change to a supertype of 'A', or, for a covariant parameter, a subtype.
38
+
// A operator [](B b) => new A();
39
+
// ^
40
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:15:14: Context: This is the overridden method ('[]').
41
+
// A operator [](A a);
42
+
// ^
43
+
//
44
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:12:7: Error: The implementation of '[]=' in the non-abstract class 'B' does not conform to its interface.
45
+
// class B extends A {
46
+
// ^
47
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:9:23: Context: The parameter 'b1' of the method 'A.[]=' has type 'B', which does not match the corresponding type, 'A', in the overridden method, 'B.[]='.
48
+
// - 'B' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
49
+
// - 'A' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
50
+
// Change to a supertype of 'A', or, for a covariant parameter, a subtype.
51
+
// void operator []=(B b1, B b2) {}
52
+
// ^
53
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:16:17: Context: This is the overridden method ('[]=').
54
+
// void operator []=(A a, B b);
55
+
// ^
56
+
//
57
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:19:7: Error: The implementation of '[]' in the non-abstract class 'C' does not conform to its interface.
58
+
// class C extends A {
59
+
// ^
60
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:8:14: Context: The return type of the method 'A.[]' is 'A', which does not match the return type, 'B', of the overridden method, 'C.[]'.
61
+
// - 'A' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
62
+
// - 'B' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
63
+
// Change to a subtype of 'B'.
64
+
// A operator [](B b) => new A();
65
+
// ^
66
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:20:14: Context: This is the overridden method ('[]').
67
+
// B operator [](B b);
68
+
// ^
69
+
//
70
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:19:7: Error: The implementation of '[]=' in the non-abstract class 'C' does not conform to its interface.
71
+
// class C extends A {
72
+
// ^
73
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:9:29: Context: The parameter 'b2' of the method 'A.[]=' has type 'B', which does not match the corresponding type, 'A', in the overridden method, 'C.[]='.
74
+
// - 'B' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
75
+
// - 'A' is from 'pkg/front_end/testcases/general/abstract_operator_override.dart'.
76
+
// Change to a supertype of 'A', or, for a covariant parameter, a subtype.
77
+
// void operator []=(B b1, B b2) {}
78
+
// ^
79
+
// pkg/front_end/testcases/general/abstract_operator_override.dart:21:17: Context: This is the overridden method ('[]=').
80
+
// void operator []=(B b, A a);
81
+
// ^
82
+
//
83
+
import self as self;
84
+
import "dart:core" as core;
85
+
86
+
class A extends core::Object {
87
+
synthetic constructor •() → self::A*
88
+
;
89
+
operator +(self::B* b) → self::A*
90
+
;
91
+
operator unary-() → self::A*
92
+
;
93
+
operator [](self::B* b) → self::A*
94
+
;
95
+
operator []=(self::B* b1, self::B* b2) → void
96
+
;
97
+
abstract member-signature get _identityHashCode() → core::int*;
0 commit comments