implemented 'import except'
This commit is contained in:
parent
0ef08e49e7
commit
92e10e4b18
14 changed files with 120 additions and 95 deletions
10
tests/reject/timportexcept.nim
Normal file
10
tests/reject/timportexcept.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
discard """
|
||||
line: 9
|
||||
errormsg: "undeclared identifier: '%'"
|
||||
"""
|
||||
|
||||
import strutils except `%`
|
||||
|
||||
# doesn't work
|
||||
echo "$1" % "abc"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue