Skip to content

Commit

Permalink
Backport "Fix test directive in i18533" to LTS (#20958)
Browse files Browse the repository at this point in the history
Backports #19802 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
  • Loading branch information
WojciechMazur authored Jul 3, 2024
2 parents b705d91 + 07680d2 commit df7b0bd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/neg/i18533.check
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// Special test for the non-sealed trick (See JavaParsers.scala::modifiers)
public non class Test { // error

}
}
2 changes: 1 addition & 1 deletion tests/pos/i18533/Cat.java
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;

Expand Down
1 change: 0 additions & 1 deletion tests/pos/i18533/Dog.java
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;

Expand Down
1 change: 0 additions & 1 deletion tests/pos/i18533/Pet.java
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;

Expand Down

0 comments on commit df7b0bd

Please sign in to comment.