forked from dotnet/fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw error if unicode is in reserved space - fixes dotnet#338
- Loading branch information
Showing
5 changed files
with
28 additions
and
4 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
18 changes: 18 additions & 0 deletions
18
...sharpqa/Source/Conformance/LexicalAnalysis/StringsAndCharacters/E_InvalidUnicodeChar01.fs
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,18 @@ | ||
// #Regression #Conformance #LexicalAnalysis | ||
#light | ||
|
||
// Verify error when trying to take the byte value of | ||
// a unicode character literal. | ||
|
||
//<Expects id="FS1245" span="(11,17-11,18)" status="error">This is not a valid UTF-16 literal</Expects> | ||
//<Expects id="FS1245" span="(13,17-11,18)" status="error">This is not a valid UTF-16 literal</Expects> | ||
|
||
let _ = '\uD7FF' // Ok | ||
|
||
let _ = '\uD800' | ||
|
||
let _ = "\uDFFF" | ||
|
||
let _ = "\uE000" // Ok | ||
|
||
exit 1 |
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