-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport "Fix test directive in i18533" to LTS (#20958)
Backports #19802 to the LTS branch. PR submitted by the release tooling. [skip ci]
- Loading branch information
Showing
5 changed files
with
6 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
-- Error: tests/neg/i18533/Non_SCALA_ONLY.java:4:7 --------------------------------------------------------------------- | ||
4 |public non class Test { // error | ||
| ^^^ | ||
| Identifier 'non' is not allowed here | ||
-- Error: tests/neg/i18533/Pet_SCALA_ONLY.java:3:10 -------------------------------------------------------------------- | ||
3 |class Pet permits Cat { // error | ||
| ^^^^^^^ | ||
| A type declaration that has a permits clause should have a sealed modifier | ||
-- Error: tests/neg/i18533/non-SCALA_ONLY.java:4:7 --------------------------------------------------------------------- | ||
4 |public non class Test { // error | ||
| ^^^ | ||
| Identifier 'non' is not allowed here |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
// Special test for the non-sealed trick (See JavaParsers.scala::modifiers) | ||
public non class Test { // error | ||
|
||
} | ||
} |
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,5 +1,5 @@ | ||
//> using javacOpt --enable-preview --source 17 | ||
//> test: -jvm 17+ | ||
// test: -jvm 17+ | ||
|
||
package i18533; | ||
|
||
|
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,5 +1,4 @@ | ||
//> using javacOpt --enable-preview --source 17 | ||
//> test: -jvm 17+ | ||
|
||
package i18533; | ||
|
||
|
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,5 +1,4 @@ | ||
//> using javacOpt --enable-preview --source 17 | ||
//> test: -jvm 17+ | ||
|
||
package i18533; | ||
|
||
|