require errormsg to be specified before file.

This commit is contained in:
Arne Döring 2018-11-29 16:07:51 +01:00 • committed by Araq
commit 1105d03644
264 changed files with 305 additions and 623 deletions

View file

@ -1,7 +1,7 @@
discard """
errormsg: "ambiguous identifier"
file: "tambsym.nim"
line: 11
errormsg: "ambiguous identifier"
"""
# Test ambiguous symbols
@ -11,5 +11,3 @@ var
v: TExport #ERROR_MSG ambiguous identifier
v = y

View file

@ -1,5 +1,4 @@
discard """
file: "tambsym2.nim"
output: "7"
"""
# Test overloading of procs with locals
@ -20,5 +19,3 @@ m.len = 7
m.data = "1234"
x(m, 5) #OUT 7

View file

@ -1,7 +1,7 @@
discard """
errormsg: "ambiguous identifier"
file: "tambsym3.nim"
line: 11
errormsg: "ambiguous identifier"
"""
# Test ambiguous symbols
@ -11,5 +11,3 @@ var
v = mDec #ERROR_MSG ambiguous identifier
writeLine(stdout, ord(v))

View file

@ -1,5 +1,4 @@
discard """
file: "tambsys.nim"
output: ""
"""
# Test ambiguous symbols
@ -9,5 +8,3 @@ import mambsys1, mambsys2
var
v: mambsys1.TExport
mambsys2.foo(3) #OUT