mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 14:55:24 +00:00
new language feature: explicit 'import system' statements are allowed
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user