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
Martijn Hoekstra
committed
Aug 9, 2019
1 parent
2426812
commit 711a638
Showing
9 changed files
with
122 additions
and
39 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
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
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,25 @@ | ||
t3220-1.scala:2: error: invalid unicode escape | ||
val badsingle = "foo \unope that's wrong" | ||
^ | ||
t3220-1.scala:3: error: invalid unicode escape at index 6 of foo \unope that's wrong | ||
val badtriple = """foo \unope that's wrong""" | ||
^ | ||
t3220-1.scala:4: error: invalid unicode escape | ||
val caretPos = "foo \u12x3 pos @ x" | ||
^ | ||
t3220-1.scala:5: error: invalid unicode escape | ||
val caretPos2 = "foo \uuuuuuu12x3 pos @ x" | ||
^ | ||
t3220-1.scala:6: error: invalid unicode escape | ||
val carPosTerm = "foo \u123" | ||
^ | ||
t3220-1.scala:7: error: invalid unicode escape | ||
val halfAnEscape = "foo \u12" | ||
^ | ||
t3220-1.scala:8: error: invalid unicode escape | ||
val halfAnEscapeChar = '\u45' | ||
^ | ||
t3220-1.scala:9: error: invalid unicode escape | ||
val `half An Identifier\u45` = "nope" | ||
^ | ||
8 errors found |
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,10 @@ | ||
object Example { | ||
val badsingle = "foo \unope that's wrong" | ||
val badtriple = """foo \unope that's wrong""" | ||
val caretPos = "foo \u12x3 pos @ x" | ||
val caretPos2 = "foo \uuuuuuu12x3 pos @ x" | ||
val carPosTerm = "foo \u123" | ||
val halfAnEscape = "foo \u12" | ||
val halfAnEscapeChar = '\u45' | ||
val `half An Identifier\u45` = "nope" | ||
} |
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,16 @@ | ||
t3220-2.scala:2: error: invalid unicode escape at index 6 of foo \unope that's wrong | ||
val badInters1 = s"foo \unope that's wrong" | ||
^ | ||
t3220-2.scala:3: error: invalid unicode escape at index 8 of foo \u12 | ||
val badIntersEnd1 = s"foo \u12" | ||
^ | ||
t3220-2.scala:4: error: invalid unicode escape at index 6 of foo \unope that's wrong | ||
val badInterRaw1 = raw"foo \unope that's wrong" | ||
^ | ||
t3220-2.scala:6: error: invalid unicode escape at index 6 of foo \unope that's wrong | ||
val badInters3 = s"""foo \unope that's wrong""" | ||
^ | ||
t3220-2.scala:7: error: invalid unicode escape at index 6 of foo \unope that's wrong | ||
val badInterRaw3 = raw"""foo \unope that's wrong""" | ||
^ | ||
5 errors found |
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,8 @@ | ||
object Example { | ||
val badInters1 = s"foo \unope that's wrong" | ||
val badIntersEnd1 = s"foo \u12" | ||
val badInterRaw1 = raw"foo \unope that's wrong" | ||
val badInterRawEnd1 = raw"foo \u12" | ||
val badInters3 = s"""foo \unope that's wrong""" | ||
val badInterRaw3 = raw"""foo \unope that's wrong""" | ||
} |
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