-
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
Showing
11 changed files
with
162 additions
and
45 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
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 @@ | ||
surrogates.scala:3: error: illegal codepoint in Char constant | ||
def c = '𐐀' | ||
^ | ||
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 c = '𐐀' | ||
} |
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,12 @@ | ||
|
||
class 𐐀 { | ||
def 𐐀 = 42 | ||
def x = "𐐀" | ||
def y = s"$𐐀" | ||
} | ||
|
||
case class 𐐀𐐀(n: Int) { | ||
def 𐐀𐐀 = n | ||
} | ||
|
||
// was: error: illegal character '\ud801', '\udc00' |
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
|
||
import scala.tools.testkit.AssertUtil.assertEqualStrings | ||
|
||
object Test extends App { | ||
val c = new C_1 | ||
assert(c.nulled == "X\u0000ABC") // "X\000ABC" | ||
assert(c.supped == "𐒈𐒝𐒑𐒛𐒐𐒘𐒕𐒖") | ||
assert(C_1.NULLED.length == "XYABC".length) | ||
assert(C_1.SUPPED.codePointCount(0, C_1.SUPPED.length) == 8) | ||
|
||
assert(C_1.NULLED == "X\u0000ABC") // "X\000ABC" | ||
assert(C_1.SUPPED == "𐒈𐒝𐒑𐒛𐒐𐒘𐒕𐒖") | ||
assertEqualStrings(c.nulled)("X\u0000ABC") // "X\000ABC" in java source | ||
assertEqualStrings(c.supped)("𐒈𐒝𐒑𐒛𐒐𐒘𐒕𐒖") | ||
|
||
assert(C_1.NULLED.size == "XYABC".size) | ||
assert(C_1.SUPPED.codePointCount(0, C_1.SUPPED.length) == 8) | ||
assertEqualStrings(C_1.NULLED)("X\u0000ABC") // "X\000ABC" in java source | ||
assertEqualStrings(C_1.SUPPED)("𐒈𐒝𐒑𐒛𐒐𐒘𐒕𐒖") | ||
} |
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