Skip to content

Commit 08b776a

Browse files
johnniwintherCommit Bot
authored andcommitted
[cfe] Remove language version from extensions tests
Change-Id: Ie380dda35cbf449669eb06d18cef284915dc748e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239305 Reviewed-by: Jens Johansen <[email protected]> Commit-Queue: Johnni Winther <[email protected]>
1 parent f5831de commit 08b776a

File tree

572 files changed

+12520
-9284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

572 files changed

+12520
-9284
lines changed

pkg/front_end/testcases/extensions/ambiguous.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
// @dart=2.9
4+
55
extension A on C {
66
void method() {}
77
int get getter => 42;

pkg/front_end/testcases/extensions/ambiguous.dart.textual_outline.expect

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @dart = 2.9
21
extension A on C {
32
void method() {}
43
int get getter => 42;

pkg/front_end/testcases/extensions/ambiguous.dart.textual_outline_modelled.expect

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @dart = 2.9
21
class C {}
32

43
errors(C c) {}

pkg/front_end/testcases/extensions/ambiguous.dart.weak.expect

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library;
1+
library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
@@ -150,21 +150,11 @@ import self as self;
150150
import "dart:core" as core;
151151

152152
class C extends core::Object {
153-
synthetic constructor •() → self::C*
153+
synthetic constructor •() → self::C
154154
: super core::Object::•()
155155
;
156-
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode
157-
abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf
158-
abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf
159-
abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue
160-
abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse
161-
abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::==
162-
abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode
163-
abstract member-signature method toString() → core::String*; -> core::Object::toString
164-
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod
165-
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
166156
}
167-
extension A on self::C* {
157+
extension A on self::C {
168158
method method = self::A|method;
169159
tearoff method = self::A|get#method;
170160
get getter = self::A|get#getter;
@@ -174,7 +164,7 @@ extension A on self::C* {
174164
operator [] = self::A|[];
175165
set setter = self::A|set#setter;
176166
}
177-
extension B on self::C* {
167+
extension B on self::C {
178168
method method = self::B|method;
179169
tearoff method = self::B|get#method;
180170
get getter = self::B|get#getter;
@@ -184,33 +174,33 @@ extension B on self::C* {
184174
set setter = self::B|set#setter;
185175
set property = self::B|set#property;
186176
}
187-
static method A|method(lowered final self::C* #this) → void {}
188-
static method A|get#method(lowered final self::C* #this) → () →* void
177+
static method A|method(lowered final self::C #this) → void {}
178+
static method A|get#method(lowered final self::C #this) → () → void
189179
return () → void => self::A|method(#this);
190-
static method A|get#getter(lowered final self::C* #this) → core::int*
180+
static method A|get#getter(lowered final self::C #this) → core::int
191181
return 42;
192-
static method A|set#setter(lowered final self::C* #this, core::int* value) → void {}
193-
static method A|get#property(lowered final self::C* #this) → core::int*
182+
static method A|set#setter(lowered final self::C #this, core::int value) → void {}
183+
static method A|get#property(lowered final self::C #this) → core::int
194184
return 42;
195-
static method A|+(lowered final self::C* #this, core::int* i) → core::int*
185+
static method A|+(lowered final self::C #this, core::int i) → core::int
196186
return i;
197-
static method A|unary-(lowered final self::C* #this) → core::int*
187+
static method A|unary-(lowered final self::C #this) → core::int
198188
return 0;
199-
static method A|[](lowered final self::C* #this, core::int* i) → core::int*
189+
static method A|[](lowered final self::C #this, core::int i) → core::int
200190
return i;
201-
static method B|method(lowered final self::C* #this) → void {}
202-
static method B|get#method(lowered final self::C* #this) → () →* void
191+
static method B|method(lowered final self::C #this) → void {}
192+
static method B|get#method(lowered final self::C #this) → () → void
203193
return () → void => self::B|method(#this);
204-
static method B|get#getter(lowered final self::C* #this) → core::int*
194+
static method B|get#getter(lowered final self::C #this) → core::int
205195
return 42;
206-
static method B|set#setter(lowered final self::C* #this, core::int* value) → void {}
207-
static method B|set#property(lowered final self::C* #this, core::int* value) → void {}
208-
static method B|+(lowered final self::C* #this, core::int* i) → core::int*
196+
static method B|set#setter(lowered final self::C #this, core::int value) → void {}
197+
static method B|set#property(lowered final self::C #this, core::int value) → void {}
198+
static method B|+(lowered final self::C #this, core::int i) → core::int
209199
return i;
210-
static method B|unary-(lowered final self::C* #this) → core::int*
200+
static method B|unary-(lowered final self::C #this) → core::int
211201
return 0;
212-
static method B|[]=(lowered final self::C* #this, core::int* i, core::int* j) → void {}
213-
static method errors(self::C* c) → dynamic {
202+
static method B|[]=(lowered final self::C #this, core::int i, core::int j) → void {}
203+
static method errors(self::C c) → dynamic {
214204
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:28:5: Error: The method 'method' is defined in multiple extensions for 'C' and neither is more specific.
215205
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
216206
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.

pkg/front_end/testcases/extensions/ambiguous.dart.weak.modular.expect

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library;
1+
library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
@@ -150,21 +150,11 @@ import self as self;
150150
import "dart:core" as core;
151151

152152
class C extends core::Object {
153-
synthetic constructor •() → self::C*
153+
synthetic constructor •() → self::C
154154
: super core::Object::•()
155155
;
156-
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode
157-
abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf
158-
abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf
159-
abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue
160-
abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse
161-
abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::==
162-
abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode
163-
abstract member-signature method toString() → core::String*; -> core::Object::toString
164-
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod
165-
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
166156
}
167-
extension A on self::C* {
157+
extension A on self::C {
168158
method method = self::A|method;
169159
tearoff method = self::A|get#method;
170160
get getter = self::A|get#getter;
@@ -174,7 +164,7 @@ extension A on self::C* {
174164
operator [] = self::A|[];
175165
set setter = self::A|set#setter;
176166
}
177-
extension B on self::C* {
167+
extension B on self::C {
178168
method method = self::B|method;
179169
tearoff method = self::B|get#method;
180170
get getter = self::B|get#getter;
@@ -184,33 +174,33 @@ extension B on self::C* {
184174
set setter = self::B|set#setter;
185175
set property = self::B|set#property;
186176
}
187-
static method A|method(lowered final self::C* #this) → void {}
188-
static method A|get#method(lowered final self::C* #this) → () →* void
177+
static method A|method(lowered final self::C #this) → void {}
178+
static method A|get#method(lowered final self::C #this) → () → void
189179
return () → void => self::A|method(#this);
190-
static method A|get#getter(lowered final self::C* #this) → core::int*
180+
static method A|get#getter(lowered final self::C #this) → core::int
191181
return 42;
192-
static method A|set#setter(lowered final self::C* #this, core::int* value) → void {}
193-
static method A|get#property(lowered final self::C* #this) → core::int*
182+
static method A|set#setter(lowered final self::C #this, core::int value) → void {}
183+
static method A|get#property(lowered final self::C #this) → core::int
194184
return 42;
195-
static method A|+(lowered final self::C* #this, core::int* i) → core::int*
185+
static method A|+(lowered final self::C #this, core::int i) → core::int
196186
return i;
197-
static method A|unary-(lowered final self::C* #this) → core::int*
187+
static method A|unary-(lowered final self::C #this) → core::int
198188
return 0;
199-
static method A|[](lowered final self::C* #this, core::int* i) → core::int*
189+
static method A|[](lowered final self::C #this, core::int i) → core::int
200190
return i;
201-
static method B|method(lowered final self::C* #this) → void {}
202-
static method B|get#method(lowered final self::C* #this) → () →* void
191+
static method B|method(lowered final self::C #this) → void {}
192+
static method B|get#method(lowered final self::C #this) → () → void
203193
return () → void => self::B|method(#this);
204-
static method B|get#getter(lowered final self::C* #this) → core::int*
194+
static method B|get#getter(lowered final self::C #this) → core::int
205195
return 42;
206-
static method B|set#setter(lowered final self::C* #this, core::int* value) → void {}
207-
static method B|set#property(lowered final self::C* #this, core::int* value) → void {}
208-
static method B|+(lowered final self::C* #this, core::int* i) → core::int*
196+
static method B|set#setter(lowered final self::C #this, core::int value) → void {}
197+
static method B|set#property(lowered final self::C #this, core::int value) → void {}
198+
static method B|+(lowered final self::C #this, core::int i) → core::int
209199
return i;
210-
static method B|unary-(lowered final self::C* #this) → core::int*
200+
static method B|unary-(lowered final self::C #this) → core::int
211201
return 0;
212-
static method B|[]=(lowered final self::C* #this, core::int* i, core::int* j) → void {}
213-
static method errors(self::C* c) → dynamic {
202+
static method B|[]=(lowered final self::C #this, core::int i, core::int j) → void {}
203+
static method errors(self::C c) → dynamic {
214204
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:28:5: Error: The method 'method' is defined in multiple extensions for 'C' and neither is more specific.
215205
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
216206
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
1-
library;
1+
library /*isNonNullableByDefault*/;
22
import self as self;
33
import "dart:core" as core;
44

55
class C extends core::Object {
6-
synthetic constructor •() → self::C*
6+
synthetic constructor •() → self::C
77
;
8-
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode
9-
abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf
10-
abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf
11-
abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue
12-
abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse
13-
abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::==
14-
abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode
15-
abstract member-signature method toString() → core::String*; -> core::Object::toString
16-
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod
17-
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
188
}
19-
extension A on self::C* {
9+
extension A on self::C {
2010
method method = self::A|method;
2111
tearoff method = self::A|get#method;
2212
get getter = self::A|get#getter;
@@ -26,7 +16,7 @@ extension A on self::C* {
2616
operator [] = self::A|[];
2717
set setter = self::A|set#setter;
2818
}
29-
extension B on self::C* {
19+
extension B on self::C {
3020
method method = self::B|method;
3121
tearoff method = self::B|get#method;
3222
get getter = self::B|get#getter;
@@ -36,39 +26,39 @@ extension B on self::C* {
3626
set setter = self::B|set#setter;
3727
set property = self::B|set#property;
3828
}
39-
static method A|method(lowered final self::C* #this) → void
29+
static method A|method(lowered final self::C #this) → void
4030
;
41-
static method A|get#method(lowered final self::C* #this) → () →* void
31+
static method A|get#method(lowered final self::C #this) → () → void
4232
return () → void => self::A|method(#this);
43-
static method A|get#getter(lowered final self::C* #this) → core::int*
33+
static method A|get#getter(lowered final self::C #this) → core::int
4434
;
45-
static method A|set#setter(lowered final self::C* #this, core::int* value) → void
35+
static method A|set#setter(lowered final self::C #this, core::int value) → void
4636
;
47-
static method A|get#property(lowered final self::C* #this) → core::int*
37+
static method A|get#property(lowered final self::C #this) → core::int
4838
;
49-
static method A|+(lowered final self::C* #this, core::int* i) → core::int*
39+
static method A|+(lowered final self::C #this, core::int i) → core::int
5040
;
51-
static method A|unary-(lowered final self::C* #this) → core::int*
41+
static method A|unary-(lowered final self::C #this) → core::int
5242
;
53-
static method A|[](lowered final self::C* #this, core::int* i) → core::int*
43+
static method A|[](lowered final self::C #this, core::int i) → core::int
5444
;
55-
static method B|method(lowered final self::C* #this) → void
45+
static method B|method(lowered final self::C #this) → void
5646
;
57-
static method B|get#method(lowered final self::C* #this) → () →* void
47+
static method B|get#method(lowered final self::C #this) → () → void
5848
return () → void => self::B|method(#this);
59-
static method B|get#getter(lowered final self::C* #this) → core::int*
49+
static method B|get#getter(lowered final self::C #this) → core::int
6050
;
61-
static method B|set#setter(lowered final self::C* #this, core::int* value) → void
51+
static method B|set#setter(lowered final self::C #this, core::int value) → void
6252
;
63-
static method B|set#property(lowered final self::C* #this, core::int* value) → void
53+
static method B|set#property(lowered final self::C #this, core::int value) → void
6454
;
65-
static method B|+(lowered final self::C* #this, core::int* i) → core::int*
55+
static method B|+(lowered final self::C #this, core::int i) → core::int
6656
;
67-
static method B|unary-(lowered final self::C* #this) → core::int*
57+
static method B|unary-(lowered final self::C #this) → core::int
6858
;
69-
static method B|[]=(lowered final self::C* #this, core::int* i, core::int* j) → void
59+
static method B|[]=(lowered final self::C #this, core::int i, core::int j) → void
7060
;
71-
static method errors(self::C* c) → dynamic
61+
static method errors(self::C c) → dynamic
7262
;
7363
static method main() → dynamic
7464
;

0 commit comments

Comments
 (0)