Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2559. Add tests checking that augment is a built-in identifier #2560

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,33 @@ void foo<abstract>() {}
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<abstract> on List {}
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<abstract>();
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<abstract extends Comparable<abstract>> = int Function();
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<abstract>()? c = null;
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
print(C);
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,33 @@ void foo<as>() {}
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<as> on List {}
// ^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<as>();
// ^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<as extends Comparable<as>> = int Function();
// ^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<as>()? c = null;
// ^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
print(C);
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,33 @@ void foo<covariant>() {}
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<covariant> on List {}
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<covariant>();
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<covariant extends Comparable<covariant>> = int Function();
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<covariant>()? c = null;
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
print(C);
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,33 @@ void foo<deferred>() {}
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<deferred> on List {}
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<deferred>();
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<deferred extends Comparable<deferred>> = int Function();
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<deferred>()? c = null;
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
print(C);
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,33 @@ void foo<dynamic>() {}
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<dynamic> on List {}
// ^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<dynamic>();
// ^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<dynamic extends Comparable<dynamic>> = int Function();
// ^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<dynamic>()? c = null;
// ^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
print(C);
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,33 @@ void foo<export>() {}
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<export> on List {}
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<export>();
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<export extends Comparable<export>> = int Function();
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<export>()? c = null;
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
print(C);
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,33 @@ void foo<external>() {}
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<external> on List {}
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<external>();
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<external extends Comparable<external>> = int Function();
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<external>()? c = null;
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
print(C);
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,28 @@ enum E<extension> {
e1;
}

void foo<external>() {}
// ^^^^^^^^
void foo<extension>() {}
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<extension> on List {}
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<extension>();
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<extension extends Comparable<extension>> = int Function();
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<extension>()? c = null;
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

Expand All @@ -39,4 +59,8 @@ main() {
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,33 @@ void foo<factory>() {}
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<factory> on List {}
// ^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<factory>();
// ^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<factory extends Comparable<factory>> = int Function();
// ^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<factory>()? c = null;
// ^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
print(C);
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,33 @@ void foo<Function>() {}
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<Function> on List {}
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<Function>();
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<Function extends Comparable<Function>> = int Function();
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<Function>()? c = null;
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
print(C);
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,33 @@ void foo<get>() {}
// [analyzer] unspecified
// [cfe] unspecified

extension Ext<get> on List {}
// ^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef int F1<get>();
// ^^^
// [analyzer] unspecified
// [cfe] unspecified

typedef F2<get extends Comparable<get>> = int Function();
// ^^^
// [analyzer] unspecified
// [cfe] unspecified

const void Function<get>()? c = null;
// ^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
print(C);
print(M);
print(E);
print(foo);
print(List);
print(F1);
print(F2);
print(c);
}
Loading
Loading