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
commit 31a8cf16bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 14 additions and 14 deletions

View file

@ -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":

View file

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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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)

View file

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

View file

@ -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

View file

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

View file

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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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: