mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
start of yamllexer
This commit is contained in:
9
tests/reject/mbind4.nim
Normal file
9
tests/reject/mbind4.nim
Normal file
@@ -0,0 +1,9 @@
|
||||
# Module A
|
||||
var
|
||||
lastId = 0
|
||||
|
||||
template genId*: expr =
|
||||
inc(lastId)
|
||||
lastId
|
||||
|
||||
|
||||
5
tests/reject/tinc.nim
Normal file
5
tests/reject/tinc.nim
Normal file
@@ -0,0 +1,5 @@
|
||||
var x = 0
|
||||
|
||||
inc(x+1) #ERROR_MSG to var type a variable needs to be passed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user