Skip to content
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
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