Skip to content

Commit df7b0bd

Browse files
Backport "Fix test directive in i18533" to LTS (#20958)
Backports #19802 to the LTS branch. PR submitted by the release tooling. [skip ci]
2 parents b705d91 + 07680d2 commit df7b0bd

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

Diff for: tests/neg/i18533.check

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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 --------------------------------------------------------------------
26
3 |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

Diff for: tests/neg/i18533/non-SCALA_ONLY.java renamed to tests/neg/i18533/Non_SCALA_ONLY.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
// Special test for the non-sealed trick (See JavaParsers.scala::modifiers)
44
public non class Test { // error
55

6-
}
6+
}

Diff for: tests/pos/i18533/Cat.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//> using javacOpt --enable-preview --source 17
2-
//> test: -jvm 17+
2+
// test: -jvm 17+
33

44
package i18533;
55

Diff for: tests/pos/i18533/Dog.java

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//> using javacOpt --enable-preview --source 17
2-
//> test: -jvm 17+
32

43
package i18533;
54

Diff for: tests/pos/i18533/Pet.java

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//> using javacOpt --enable-preview --source 17
2-
//> test: -jvm 17+
32

43
package i18533;
54

0 commit comments

Comments
 (0)