-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5404759
commit 374fa19
Showing
6 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
text-blocks/Invalid1.java:3: error: illegal text block open delimiter sequence, missing line terminator | ||
public static final String badOpeningDelimiter = """non-whitespace | ||
^ | ||
text-blocks/Invalid1.java:3: error: <identifier> expected | ||
public static final String badOpeningDelimiter = """non-whitespace | ||
^ | ||
text-blocks/Invalid1.java:5: error: illegal text block open delimiter sequence, missing line terminator | ||
"""; | ||
^ | ||
text-blocks/Invalid2.java:5: error: unclosed string literal | ||
foo""""; | ||
^ | ||
4 errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Invalid1 { | ||
|
||
public static final String badOpeningDelimiter = """non-whitespace | ||
foo | ||
"""; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Invalid2 { | ||
|
||
// Closing delimiter is first three eligible `"""`, not last | ||
public static final String closingDelimiterIsNotScalas = """ | ||
foo""""; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters