-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix error after multiline string literal; add two unit tests
- Loading branch information
Showing
5 changed files
with
53 additions
and
9 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,10 @@ | ||
// test error reporting after a multi-line string literal | ||
// (without trailing one-line comment) | ||
" | ||
multi | ||
line | ||
chuck | ||
string | ||
" => string foo; | ||
|
||
[1,2,3] => int bar[]; // syntax 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,6 @@ | ||
error-after-multiline-string-1.ck:10:9: error: cannot resolve operator '=>' on types 'int[]' and 'int[]'... | ||
[10] [1,2,3] => int bar[]; // syntax error | ||
^ | ||
error-after-multiline-string-1.ck:10:9: error: ...(note: use '@=>' for object reference assignment) | ||
[10] [1,2,3] => int bar[]; // syntax 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,10 @@ | ||
// test error reporting after a multi-line string literal | ||
// (without trailing one-line comment) | ||
" | ||
multi | ||
line | ||
chuck | ||
string | ||
" => string foo; | ||
|
||
[1,2,3] => int bar[]; |
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,6 @@ | ||
error-after-multiline-string-2.ck:10:9: error: cannot resolve operator '=>' on types 'int[]' and 'int[]'... | ||
[10] [1,2,3] => int bar[]; | ||
^ | ||
error-after-multiline-string-2.ck:10:9: error: ...(note: use '@=>' for object reference assignment) | ||
[10] [1,2,3] => int bar[]; | ||
^ |