Merge branch 'devel' into yield-in-try
This commit is contained in:
commit
cfe40a3e6e
121 changed files with 5545 additions and 5491 deletions
|
|
@ -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() =
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'''
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
file: "tunderscores.nim"
|
||||
line: 8
|
||||
errormsg: "invalid token: _"
|
||||
errormsg: "invalid token: trailing underscore"
|
||||
"""
|
||||
# Bug #502670
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
errormsg: "number 0x123'u8 out of valid range"
|
||||
errormsg: "number out of range: '0x123'u8'"
|
||||
"""
|
||||
|
||||
# Bug #1179
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 11
|
||||
errormsg: "identifier expected, but found 'keyword of'"
|
||||
errormsg: "identifier expected, but got 'keyword of'"
|
||||
"""
|
||||
|
||||
type
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
discard """
|
||||
file: "tinvcolonlocation3.nim"
|
||||
line: 12
|
||||
column: 3
|
||||
errormsg: "':' expected"
|
||||
column: 7
|
||||
errormsg: "expected: ':', but got: 'echo'"
|
||||
"""
|
||||
try:
|
||||
echo "try"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
errormsg: "identifier expected, but found 'keyword when'"
|
||||
errormsg: "identifier expected, but got 'keyword when'"
|
||||
"""
|
||||
|
||||
# bug #2123
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
file: "tparameterizedparent3.nim"
|
||||
line: 13
|
||||
errormsg: "redefinition of 'color'"
|
||||
errormsg: "attempt to redefine: 'color'"
|
||||
"""
|
||||
# bug #5264
|
||||
type
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
file: "tparameterizedparent4.nim"
|
||||
line: 23
|
||||
errormsg: "redefinition of 'grain'"
|
||||
errormsg: "attempt to redefine: 'grain'"
|
||||
"""
|
||||
# bug #5264
|
||||
type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue