Skip to content

Commit

Permalink
Fix test directive in i18533 (#19802)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal authored Feb 28, 2024
2 parents 4810559 + 84024e9 commit 93d8b1a
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 93d8b1a

Please sign in to comment.