mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
testament spec: remove errmsg alias of errormsg (#16188)
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
errmsg: "undeclared identifier: 'undefined'"
|
||||
errormsg: "undeclared identifier: 'undefined'"
|
||||
file: "notthisfile.nim"
|
||||
"""
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
errmsg: "invalid type: 'type int' for const"
|
||||
errormsg: "invalid type: 'type int' for const"
|
||||
"""
|
||||
## issue #8610
|
||||
const Foo = int
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
errmsg: "unhandled exception:"
|
||||
errormsg: "unhandled exception:"
|
||||
file: "system/fatal.nim"
|
||||
nimout: '''
|
||||
stack trace: (most recent call last)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
errmsg: "undeclared identifier: 'z'"
|
||||
errormsg: "undeclared identifier: 'z'"
|
||||
line: 11
|
||||
"""
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
errmsg: "expression has no address"
|
||||
errormsg: "expression has no address"
|
||||
"""
|
||||
type
|
||||
MyObject = object
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
errmsg: "'x' cannot be assigned to"
|
||||
errormsg: "'x' cannot be assigned to"
|
||||
line: 10
|
||||
"""
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user