-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixed nimsuggest crash when opening a .nim file, that contain a {.f…
…atal: "msg".} pragma. (#23325)
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
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,15 @@ | ||
{.warning: "I'm a warning!".} | ||
{.error: "I'm an error!".} | ||
{.fatal: "I'm a fatal error!".} | ||
{.error: "I'm an error after fatal error!".} | ||
|
||
#[!]# | ||
discard """ | ||
$nimsuggest --tester $file | ||
>chk $1 | ||
chk;;skUnknown;;;;Hint;;???;;0;;-1;;">> (toplevel): import(dirty): tests/tfatal1.nim [Processing]";;0 | ||
chk;;skUnknown;;;;Warning;;$file;;1;;9;;"I\'m a warning! [User]";;0 | ||
chk;;skUnknown;;;;Error;;$file;;2;;7;;"I\'m an error!";;0 | ||
chk;;skUnknown;;;;Error;;$file;;3;;7;;"fatal error: I\'m a fatal error!";;0 | ||
chk;;skUnknown;;;;Error;;$file;;4;;7;;"I\'m an error after fatal error!";;0 | ||
""" |