new language feature: explicit 'import system' statements are allowed
This commit is contained in:
parent
28940ce457
commit
e9eab32e54
5 changed files with 37 additions and 5 deletions
9
tests/modules/texplicit_system_import.nim
Normal file
9
tests/modules/texplicit_system_import.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
##.
|
||||
import system except `+`
|
||||
discard """
|
||||
errormsg: "undeclared identifier: '+'"
|
||||
line: 9
|
||||
"""
|
||||
# Testament requires that the initial """ occurs before the 40th byte
|
||||
# in the file. No kidding...
|
||||
echo 4+5
|
||||
Loading…
Add table
Add a link
Reference in a new issue