Skip to content

Fixes #1309. Update error expectations according to the current behavior #1351

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

Merged
merged 1 commit into from
Jul 5, 2022
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
10 changes: 1 addition & 9 deletions Language/Reference/Lexical_Rules/Reserved_Words/class_t10.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,11 @@
/// @description Checks that it is a compile-time error when a reserved word
/// "class" is used as a library name.
/// @author rodionov
/// @reviewer kaigorodov

library class;
// ^
// ^^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
//^
// [analyzer] unspecified
// [cfe] unspecified
try {
int x = 1;
} catch (anything) {
}
}
10 changes: 1 addition & 9 deletions Language/Reference/Lexical_Rules/Reserved_Words/class_t11.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,11 @@
/// "class" is used as an identifier following a 'show' combinator in an import
/// directive.
/// @author rodionov
/// @reviewer kaigorodov

import "lib.dart" show class;
// ^
// ^^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
//^
// [analyzer] unspecified
// [cfe] unspecified
try {
int x = 1;
} catch (anything) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@
/// @author [email protected]

library enum;
// ^
// ^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
//^
// [analyzer] unspecified
// [cfe] unspecified
try {
int x = 1;
} catch (anything) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,9 @@
/// @author [email protected]

import "lib.dart" show enum;
// ^
// ^^^^
// [analyzer] unspecified
// [cfe] unspecified

main() {
//^
// [analyzer] unspecified
// [cfe] unspecified
try {
int x = 1;
} catch (anything) {
}
}