-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
7 changed files
with
250 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package cases; | ||
|
||
class VsHaxeIssue648 extends DisplayTestCase { | ||
/** | ||
trace('Jeremy in $ci{-1-}ty'); | ||
trace('Jérémy in $ci{-2-}ty'); | ||
**/ | ||
@:funcCode function test() { | ||
var diag = diagnostics().filter(d -> d.kind == DiagnosticKind.DKUnresolvedIdentifier); | ||
eq(2, diag.length); | ||
eq(diag[0].range.start.character, diag[1].range.start.character); | ||
eq(diag[0].range.end.character, diag[1].range.end.character); | ||
} | ||
} |
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 @@ | ||
function main() { | ||
#if nofail | ||
var test = "test"; | ||
#end | ||
trace('Jeremy $test'); | ||
trace('Jérémy $test'); | ||
trace('名 字 $test'); | ||
trace('zя���� $test abcdefghijk'); | ||
trace('���� $test abcdefghijk'); | ||
trace('zя $test abcdefghijk'); | ||
trace('😀 😀 $test abcdefghijk'); | ||
trace('😀 😀 zя���� $test abcdefghijk'); | ||
} |
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 @@ | ||
--main Main | ||
--interp | ||
-D message.reporting=pretty | ||
-D message.no-color |
64 changes: 64 additions & 0 deletions
64
tests/misc/projects/VshaxeIssue648/compile-fail.hxml.stderr
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,64 @@ | ||
[ERROR] Main.hx:5: characters 17-21 | ||
|
||
5 | trace('Jeremy $test'); | ||
| ^^^^ | ||
| Unknown identifier : test | ||
|
||
| For function argument 'v' | ||
|
||
[ERROR] Main.hx:6: characters 17-21 | ||
|
||
6 | trace('Jérémy $test'); | ||
| ^^^^ | ||
| Unknown identifier : test | ||
|
||
| For function argument 'v' | ||
|
||
[ERROR] Main.hx:7: characters 16-20 | ||
|
||
7 | trace('名 字 $test'); | ||
| ^^^^ | ||
| Unknown identifier : test | ||
|
||
| For function argument 'v' | ||
|
||
[ERROR] Main.hx:8: characters 17-21 | ||
|
||
8 | trace('zя���� $test abcdefghijk'); | ||
| ^^^^ | ||
| Unknown identifier : test | ||
|
||
| For function argument 'v' | ||
|
||
[ERROR] Main.hx:9: characters 15-19 | ||
|
||
9 | trace('���� $test abcdefghijk'); | ||
| ^^^^ | ||
| Unknown identifier : test | ||
|
||
| For function argument 'v' | ||
|
||
[ERROR] Main.hx:10: characters 13-17 | ||
|
||
10 | trace('zя $test abcdefghijk'); | ||
| ^^^^ | ||
| Unknown identifier : test | ||
|
||
| For function argument 'v' | ||
|
||
[ERROR] Main.hx:11: characters 16-20 | ||
|
||
11 | trace('😀 😀 $test abcdefghijk'); | ||
| ^^^^ | ||
| Unknown identifier : test | ||
|
||
| For function argument 'v' | ||
|
||
[ERROR] Main.hx:12: characters 23-27 | ||
|
||
12 | trace('😀 😀 zя���� $test abcdefghijk'); | ||
| ^^^^ | ||
| Unknown identifier : test | ||
|
||
| For function argument 'v' | ||
|
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,5 @@ | ||
--main Main | ||
--interp | ||
-D message.reporting=pretty | ||
-D message.no-color | ||
-D nofail |
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 @@ | ||
Main.hx:5: Jeremy test | ||
Main.hx:6: Jérémy test | ||
Main.hx:7: 名 字 test | ||
Main.hx:8: zя���� test abcdefghijk | ||
Main.hx:9: ���� test abcdefghijk | ||
Main.hx:10: zя test abcdefghijk | ||
Main.hx:11: 😀 😀 test abcdefghijk | ||
Main.hx:12: 😀 😀 zя���� test abcdefghijk |