make tests green again

This commit is contained in:
Araq 2018-05-14 21:38:18 +02:00
commit 02b78d3f94
20 changed files with 33 additions and 33 deletions

View file

@ -1,7 +1,7 @@
discard """
file: "tstatret.nim"
line: 9
errormsg: "statement not allowed after"
errormsg: "unreachable statement after 'return'"
"""
# no statement after return
proc main() =

View file

@ -1,10 +1,10 @@
discard """
cmd: "nim check $file"
errormsg: "The `in` modifier can be used only with imported types"
errormsg: "the 'in' modifier can be used only with imported types"
nimout: '''
tinvalidinout.nim(14, 7) Error: The `out` modifier can be used only with imported types
tinvalidinout.nim(17, 9) Error: The `in` modifier can be used only with imported types
tinvalidinout.nim(18, 9) Error: The `in` modifier can be used only with imported types
tinvalidinout.nim(14, 7) Error: the 'out' modifier can be used only with imported types
tinvalidinout.nim(17, 9) Error: the 'in' modifier can be used only with imported types
tinvalidinout.nim(18, 9) Error: the 'in' modifier can be used only with imported types
'''
"""

View file

@ -1,7 +1,7 @@
discard """
file: "tunderscores.nim"
line: 8
errormsg: "invalid token: _"
errormsg: "invalid token: trailing underscore"
"""
# Bug #502670

View file

@ -1,5 +1,5 @@
discard """
errormsg: "number 0x123'u8 out of valid range"
errormsg: "number out of range: '0x123'u8'"
"""
# Bug #1179

View file

@ -1,6 +1,6 @@
discard """
line: 11
errormsg: "identifier expected, but found 'keyword of'"
errormsg: "identifier expected, but got 'keyword of'"
"""
type

View file

@ -1,8 +1,8 @@
discard """
file: "tinvcolonlocation1.nim"
line: 8
column: 3
errormsg: "':' expected"
column: 7
errormsg: "expected: ':', but got: 'echo'"
"""
try #<- missing ':'
echo "try"

View file

@ -1,8 +1,8 @@
discard """
file: "tinvcolonlocation2.nim"
line: 11
column: 1
errormsg: "':' expected"
column: 8
errormsg: "expected: ':', but got: 'keyword finally'"
"""
try:
echo "try"

View file

@ -1,8 +1,8 @@
discard """
file: "tinvcolonlocation3.nim"
line: 12
column: 3
errormsg: "':' expected"
column: 7
errormsg: "expected: ':', but got: 'echo'"
"""
try:
echo "try"

View file

@ -1,5 +1,5 @@
discard """
errormsg: "identifier expected, but found 'keyword when'"
errormsg: "identifier expected, but got 'keyword when'"
"""
# bug #2123

View file

@ -1,7 +1,7 @@
discard """
file: "tparameterizedparent3.nim"
line: 13
errormsg: "redefinition of 'color'"
errormsg: "attempt to redefine: 'color'"
"""
# bug #5264
type

View file

@ -1,7 +1,7 @@
discard """
file: "tparameterizedparent4.nim"
line: 23
errormsg: "redefinition of 'grain'"
errormsg: "attempt to redefine: 'grain'"
"""
# bug #5264
type