-
Notifications
You must be signed in to change notification settings - Fork 1.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
Showing
8 changed files
with
193 additions
and
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
val f = (x: Int) ⇒ x + 1 // error | ||
|
||
val list = for (n ← List(42)) yield n + 1 // error |
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,4 @@ | ||
|
||
class C { | ||
def `too wide for Char` = '𐐀' // error | ||
} |
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,28 @@ | ||
|
||
// allow supplementary chars in identifiers | ||
|
||
class 𐐀 { | ||
def 𐐀 = 42 | ||
|
||
// regression check: anything goes in strings | ||
def x = "𐐀" | ||
def y = s"$𐐀" | ||
def w = s" 𐐀" | ||
} | ||
|
||
case class 𐐀𐐀(n: Int) { | ||
def 𐐀𐐀 = n | ||
def `𐐀𐐀1` = n + n | ||
} | ||
|
||
// uncontroversially, orphan surrogates may be introduced | ||
// via unicode escape. | ||
class Construction { | ||
def hi = '\ud801' | ||
def lo = '\udc00' | ||
def endhi = "abc\ud801" | ||
def startlo = "\udc00xyz" | ||
def reversed = "xyz\udc00\ud801abc" | ||
} | ||
|
||
// was: error: illegal character '\ud801', '\udc00' |
Oops, something went wrong.