testament spec: remove errmsg alias of errormsg (#16188)

This commit is contained in:
Timothee Cour
2020-11-29 17:32:34 -08:00
committed by GitHub
parent 6114df3c24
commit 31a8cf16bb
14 changed files with 14 additions and 14 deletions

View File

@@ -306,7 +306,7 @@ proc parseSpec*(filename: string): TSpec =
result.msg = e.value
if result.action != actionRun:
result.action = actionCompile
of "errormsg", "errmsg": # xxx just use errormsg, no need for such aliases
of "errormsg":
result.msg = e.value
result.action = actionReject
of "nimout":

View File

@@ -1,5 +1,5 @@
discard """
errmsg: "undeclared identifier: 'undefined'"
errormsg: "undeclared identifier: 'undefined'"
file: "notthisfile.nim"
"""

View File

@@ -1,5 +1,5 @@
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

View File

@@ -1,5 +1,5 @@
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
v*: int

View File

@@ -1,5 +1,5 @@
discard """
errmsg: "invalid type: 'type int' for const"
errormsg: "invalid type: 'type int' for const"
"""
## issue #8610
const Foo = int

View File

@@ -1,5 +1,5 @@
discard """
errmsg: "unhandled exception:"
errormsg: "unhandled exception:"
file: "system/fatal.nim"
nimout: '''
stack trace: (most recent call last)

View File

@@ -1,5 +1,5 @@
discard """
errmsg: "undeclared identifier: 'z'"
errormsg: "undeclared identifier: 'z'"
line: 11
"""

View File

@@ -1,6 +1,6 @@
discard """
cmd: "nim check $file"
errmsg: ""
errormsg: ""
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(17, 7) Error: invalid type: 'iterator (a: int, b: int, step: Positive): int{.inline, noSideEffect, gcsafe, locks: 0.}' for const

View File

@@ -1,5 +1,5 @@
discard """
errmsg: "expression has no address"
errormsg: "expression has no address"
"""
type
MyObject = object

View File

@@ -1,5 +1,5 @@
discard """
errmsg: "'x' cannot be assigned to"
errormsg: "'x' cannot be assigned to"
line: 10
"""

View File

@@ -1,5 +1,5 @@
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

View File

@@ -1,6 +1,6 @@
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

View File

@@ -1,6 +1,6 @@
discard """
cmd: "nim check $file"
errmsg: ""
errormsg: ""
nimout: '''
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

View File

@@ -1,5 +1,5 @@
discard """
errmsg: "type mismatch: got <int>"
errormsg: "type mismatch: got <int>"
line: 17
nimout: '''type mismatch: got <int>
but expected one of: