File tree Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1+ -- Error: tests/neg/i18533/Non_SCALA_ONLY.java:4:7 ---------------------------------------------------------------------
2+ 4 |public non class Test { // error
3+ | ^^^
4+ | Identifier 'non' is not allowed here
15-- Error: tests/neg/i18533/Pet_SCALA_ONLY.java:3:10 --------------------------------------------------------------------
263 |class Pet permits Cat { // error
37 | ^^^^^^^
48 | A type declaration that has a permits clause should have a sealed modifier
5- -- Error: tests/neg/i18533/non-SCALA_ONLY.java:4:7 ---------------------------------------------------------------------
6- 4 |public non class Test { // error
7- | ^^^
8- | Identifier 'non' is not allowed here
Original file line number Diff line number Diff line change 33// Special test for the non-sealed trick (See JavaParsers.scala::modifiers)
44public non class Test { // error
55
6- }
6+ }
Original file line number Diff line number Diff line change 11//> using javacOpt --enable-preview --source 17
2- //> test: -jvm 17+
2+ // test: -jvm 17+
33
44package i18533 ;
55
Original file line number Diff line number Diff line change 11//> using javacOpt --enable-preview --source 17
2- //> test: -jvm 17+
32
43package i18533 ;
54
Original file line number Diff line number Diff line change 11//> using javacOpt --enable-preview --source 17
2- //> test: -jvm 17+
32
43package i18533 ;
54
You can’t perform that action at this time.
0 commit comments