mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
1
tests/misc/m15316.nim
Normal file
1
tests/misc/m15316.nim
Normal file
@@ -0,0 +1 @@
|
||||
proc foo = (if)
|
||||
@@ -249,6 +249,12 @@ sub/mmain.idx""", context
|
||||
let cmd = fmt"{nim} r -b:cpp --hints:off --nimcache:{nimcache} --warningAsError:ProveInit {file}"
|
||||
check execCmdEx(cmd) == ("witness\n", 0)
|
||||
|
||||
block: # bug #15316
|
||||
let file = testsDir / "misc/m15316.nim"
|
||||
let cmd = fmt"{nim} check --hints:off --nimcache:{nimcache} {file}"
|
||||
check execCmdEx(cmd) == ("m15316.nim(1, 15) Error: expression expected, but found \')\'\nm15316.nim(2, 1) Error: expected: \':\', but got: \'[EOF]\'\nm15316.nim(2, 1) Error: expression expected, but found \'[EOF]\'\nm15316.nim(2, 1) " &
|
||||
"Error: expected: \')\', but got: \'[EOF]\'\nError: illformed AST: \n", 1)
|
||||
|
||||
block: # config.nims, nim.cfg, hintConf, bug #16557
|
||||
let cmd = fmt"{nim} r --hint:all:off --hint:conf tests/newconfig/bar/mfoo.nim"
|
||||
let (outp, exitCode) = execCmdEx(cmd, options = {poStdErrToStdOut})
|
||||
|
||||
Reference in New Issue
Block a user