-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 77ec617 into dev
- Loading branch information
Showing
87 changed files
with
593 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
pkg/front_end/testcases/dart2js/extension_types/external.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...front_end/testcases/dart2js/extension_types/external.dart.textual_outline_modelled.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
pkg/front_end/testcases/dartdevc/extension_types/external.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...ront_end/testcases/dartdevc/extension_types/external.dart.textual_outline_modelled.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
pkg/front_end/testcases/extension_types/assign_interface_type.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
class A {} | ||
|
||
class B extends A {} | ||
|
||
extension type C(Object? o) {} | ||
extension type D(Object o) {} | ||
extension type E(B it) implements A {} | ||
extension type F(B it) implements E, B {} | ||
extension type G<T>(T o) {} | ||
test<T1, T2 extends A>( Object o, A a, B b, C c, D d, E e, F f, G<T1> g1, G<T2> g2) {} | ||
test<T1, T2 extends A>( | ||
Object o, A a, B b, C c, D d, E e, F f, G<T1> g1, G<T2> g2) {} |
5 changes: 4 additions & 1 deletion
5
..._end/testcases/extension_types/assign_interface_type.dart.textual_outline_modelled.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
class A {} | ||
|
||
class B extends A {} | ||
|
||
extension type C(Object? o) {} | ||
extension type D(Object o) {} | ||
extension type E(B it) implements A {} | ||
extension type F(B it) implements E, B {} | ||
extension type G<T>(T o) {} | ||
test<T1, T2 extends A>( Object o, A a, B b, C c, D d, E e, F f, G<T1> g1, G<T2> g2) {} | ||
test<T1, T2 extends A>( | ||
Object o, A a, B b, C c, D d, E e, F f, G<T1> g1, G<T2> g2) {} |
2 changes: 1 addition & 1 deletion
2
pkg/front_end/testcases/extension_types/await.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
extension type V1(Future<int> id) implements Future<int> {} | ||
extension type V2<T extends Future<Object>>(T id) implements Future<Object>{} | ||
extension type V2<T extends Future<Object>>(T id) implements Future<Object> {} | ||
main() async {} | ||
expect(expected, actual) {} |
2 changes: 1 addition & 1 deletion
2
pkg/front_end/testcases/extension_types/await.dart.textual_outline_modelled.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
expect(expected, actual) {} | ||
extension type V1(Future<int> id) implements Future<int> {} | ||
extension type V2<T extends Future<Object>>(T id) implements Future<Object>{} | ||
extension type V2<T extends Future<Object>>(T id) implements Future<Object> {} | ||
main() async {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...end/testcases/extension_types/conflicting_static_and_instance.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...ases/extension_types/conflicting_static_and_instance.dart.textual_outline_modelled.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
pkg/front_end/testcases/extension_types/const_extension_type.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...t_end/testcases/extension_types/const_extension_type.dart.textual_outline_modelled.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 12 additions & 6 deletions
18
...ont_end/testcases/extension_types/constructor_member_conflict.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
extension type ExtensionType(int it) { | ||
ExtensionType.constructorAndMethod(); | ||
void constructorAndMethod() {} | ||
factory ExtensionType.factoryAndMethod() => new ExtensionType.constructorAndMethod(); | ||
factory ExtensionType.factoryAndMethod() => | ||
new ExtensionType.constructorAndMethod(); | ||
void factoryAndMethod() {} | ||
factory ExtensionType.redirectingFactoryAndMethod() = ExtensionType.constructorAndMethod; | ||
factory ExtensionType.redirectingFactoryAndMethod() = | ||
ExtensionType.constructorAndMethod; | ||
void redirectingFactoryAndMethod() {} | ||
ExtensionType.constructorAndGetter(); | ||
dynamic get constructorAndGetter => null; | ||
factory ExtensionType.factoryAndGetter() => new ExtensionType.constructorAndGetter(); | ||
factory ExtensionType.factoryAndGetter() => | ||
new ExtensionType.constructorAndGetter(); | ||
dynamic get factoryAndGetter => null; | ||
factory ExtensionType.redirectingFactoryAndGetter() = ExtensionType.constructorAndGetter; | ||
factory ExtensionType.redirectingFactoryAndGetter() = | ||
ExtensionType.constructorAndGetter; | ||
dynamic get redirectingFactoryAndGetter => null; | ||
ExtensionType.constructorAndSetter(); | ||
void set constructorAndSetter(value) {} | ||
factory ExtensionType.factoryAndSetter() => new ExtensionType.constructorAndSetter(); | ||
factory ExtensionType.factoryAndSetter() => | ||
new ExtensionType.constructorAndSetter(); | ||
void set factoryAndSetter(value) {} | ||
factory ExtensionType.redirectingFactoryAndSetter() = ExtensionType.constructorAndSetter; | ||
factory ExtensionType.redirectingFactoryAndSetter() = | ||
ExtensionType.constructorAndSetter; | ||
void set redirectingFactoryAndSetter(value) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
pkg/front_end/testcases/extension_types/covariant_equals.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
class A {} | ||
|
||
class B implements A { | ||
@override | ||
bool operator ==(covariant A other) {} | ||
} | ||
|
||
class C {} | ||
|
||
extension type ET1(B b) implements A {} | ||
extension type ET2(B b) implements ET1, B {} | ||
void test() {} |
3 changes: 3 additions & 0 deletions
3
...front_end/testcases/extension_types/covariant_equals.dart.textual_outline_modelled.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
class A {} | ||
|
||
class B implements A { | ||
@override | ||
bool operator ==(covariant A other) {} | ||
} | ||
|
||
class C {} | ||
|
||
extension type ET1(B b) implements A {} | ||
extension type ET2(B b) implements ET1, B {} | ||
void test() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
pkg/front_end/testcases/extension_types/external.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
abstract class A {} | ||
|
||
extension type B._(A a) { | ||
external B(A a); | ||
external B.named(int i); | ||
|
1 change: 1 addition & 0 deletions
1
pkg/front_end/testcases/extension_types/external.dart.textual_outline_modelled.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
abstract class A {} | ||
|
||
extension type B._(A a) { | ||
external A field; | ||
external A method(); | ||
|
Oops, something went wrong.