testament spec: remove errmsg alias of errormsg (#16188)
This commit is contained in:
parent
6114df3c24
commit
31a8cf16bb
14 changed files with 14 additions and 14 deletions
|
|
@ -306,7 +306,7 @@ proc parseSpec*(filename: string): TSpec =
|
||||||
result.msg = e.value
|
result.msg = e.value
|
||||||
if result.action != actionRun:
|
if result.action != actionRun:
|
||||||
result.action = actionCompile
|
result.action = actionCompile
|
||||||
of "errormsg", "errmsg": # xxx just use errormsg, no need for such aliases
|
of "errormsg":
|
||||||
result.msg = e.value
|
result.msg = e.value
|
||||||
result.action = actionReject
|
result.action = actionReject
|
||||||
of "nimout":
|
of "nimout":
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errmsg: "undeclared identifier: 'undefined'"
|
errormsg: "undeclared identifier: 'undefined'"
|
||||||
file: "notthisfile.nim"
|
file: "notthisfile.nim"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errmsg: "Cannot make async proc discardable. Futures have to be checked with `asyncCheck` instead of discarded"
|
errormsg: "Cannot make async proc discardable. Futures have to be checked with `asyncCheck` instead of discarded"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import async
|
import async
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errmsg: "cannot bind another '=destroy' to: Obj; previous declaration was constructed here implicitly: tdestructor_too_late.nim(7, 16)"
|
errormsg: "cannot bind another '=destroy' to: Obj; previous declaration was constructed here implicitly: tdestructor_too_late.nim(7, 16)"
|
||||||
"""
|
"""
|
||||||
type Obj* = object
|
type Obj* = object
|
||||||
v*: int
|
v*: int
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errmsg: "invalid type: 'type int' for const"
|
errormsg: "invalid type: 'type int' for const"
|
||||||
"""
|
"""
|
||||||
## issue #8610
|
## issue #8610
|
||||||
const Foo = int
|
const Foo = int
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errmsg: "unhandled exception:"
|
errormsg: "unhandled exception:"
|
||||||
file: "system/fatal.nim"
|
file: "system/fatal.nim"
|
||||||
nimout: '''
|
nimout: '''
|
||||||
stack trace: (most recent call last)
|
stack trace: (most recent call last)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errmsg: "undeclared identifier: 'z'"
|
errormsg: "undeclared identifier: 'z'"
|
||||||
line: 11
|
line: 11
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: "nim check $file"
|
cmd: "nim check $file"
|
||||||
errmsg: ""
|
errormsg: ""
|
||||||
nimout: '''
|
nimout: '''
|
||||||
ttypeAllowed.nim(13, 5) Error: invalid type: 'iterator (a: int, b: int, step: Positive): int{.inline, noSideEffect, gcsafe, locks: 0.}' for let
|
ttypeAllowed.nim(13, 5) Error: invalid type: 'iterator (a: int, b: int, step: Positive): int{.inline, noSideEffect, gcsafe, locks: 0.}' for let
|
||||||
ttypeAllowed.nim(17, 7) Error: invalid type: 'iterator (a: int, b: int, step: Positive): int{.inline, noSideEffect, gcsafe, locks: 0.}' for const
|
ttypeAllowed.nim(17, 7) Error: invalid type: 'iterator (a: int, b: int, step: Positive): int{.inline, noSideEffect, gcsafe, locks: 0.}' for const
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errmsg: "expression has no address"
|
errormsg: "expression has no address"
|
||||||
"""
|
"""
|
||||||
type
|
type
|
||||||
MyObject = object
|
MyObject = object
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errmsg: "'x' cannot be assigned to"
|
errormsg: "'x' cannot be assigned to"
|
||||||
line: 10
|
line: 10
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errmsg: "cannot open file: pkgA/module"
|
errormsg: "cannot open file: pkgA/module"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# see nims file; comment out `switch("noNimblePath")` there and there would be no error
|
# see nims file; comment out `switch("noNimblePath")` there and there would be no error
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
discard """
|
discard """
|
||||||
errmsg: "func keyword is not allowed in type descriptions, use proc with {.noSideEffect.} pragma instead"
|
errormsg: "func keyword is not allowed in type descriptions, use proc with {.noSideEffect.} pragma instead"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: "nim check $file"
|
cmd: "nim check $file"
|
||||||
errmsg: ""
|
errormsg: ""
|
||||||
nimout: '''
|
nimout: '''
|
||||||
tillegalreturntype.nim(11, 11) Error: return type 'typed' is only valid for macros and templates
|
tillegalreturntype.nim(11, 11) Error: return type 'typed' is only valid for macros and templates
|
||||||
tillegalreturntype.nim(14, 11) Error: return type 'untyped' is only valid for macros and templates
|
tillegalreturntype.nim(14, 11) Error: return type 'untyped' is only valid for macros and templates
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errmsg: "type mismatch: got <int>"
|
errormsg: "type mismatch: got <int>"
|
||||||
line: 17
|
line: 17
|
||||||
nimout: '''type mismatch: got <int>
|
nimout: '''type mismatch: got <int>
|
||||||
but expected one of:
|
but expected one of:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue