diff options
author | flywind <xzsflywind@gmail.com> | 2021-04-06 22:20:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 16:20:01 +0200 |
commit | 7bfb9f00022513c2d0f4f93799c07be7e9ffa1e6 (patch) | |
tree | b4bd4353829491d22b0cc6cde0b7d7c6efb7351e /tests/errmsgs | |
parent | aa4f18eff0344c4de828c1e22e440c0734113086 (diff) | |
download | Nim-7bfb9f00022513c2d0f4f93799c07be7e9ffa1e6.tar.gz |
close #17636 (#17643)
Diffstat (limited to 'tests/errmsgs')
-rw-r--r-- | tests/errmsgs/t6608.nim | 3 | ||||
-rw-r--r-- | tests/errmsgs/tconceptconstraint.nim | 1 | ||||
-rw-r--r-- | tests/errmsgs/tgenericconstraint.nim | 1 | ||||
-rw-r--r-- | tests/errmsgs/twrong_at_operator.nim | 3 | ||||
-rw-r--r-- | tests/errmsgs/twrongcolon.nim | 3 |
5 files changed, 3 insertions, 8 deletions
diff --git a/tests/errmsgs/t6608.nim b/tests/errmsgs/t6608.nim index 3d82f3cd8..88cbf42fd 100644 --- a/tests/errmsgs/t6608.nim +++ b/tests/errmsgs/t6608.nim @@ -1,10 +1,9 @@ discard """ cmd: "nim c --hints:off $file" errormsg: "type mismatch: got <>" - nimout: '''t6608.nim(14, 4) Error: type mismatch: got <> + nimout: '''t6608.nim(13, 4) Error: type mismatch: got <> but expected one of: AcceptCB = proc (s: string){.closure.}''' - line: 14 """ type diff --git a/tests/errmsgs/tconceptconstraint.nim b/tests/errmsgs/tconceptconstraint.nim index b1977acbc..066ec5bdb 100644 --- a/tests/errmsgs/tconceptconstraint.nim +++ b/tests/errmsgs/tconceptconstraint.nim @@ -1,6 +1,5 @@ discard """ errormsg: "cannot instantiate B" - line: 20 nimout: ''' got: <typedesc[string]> but expected: <T: A> diff --git a/tests/errmsgs/tgenericconstraint.nim b/tests/errmsgs/tgenericconstraint.nim index b7272e787..b51fb3488 100644 --- a/tests/errmsgs/tgenericconstraint.nim +++ b/tests/errmsgs/tgenericconstraint.nim @@ -1,6 +1,5 @@ discard """ errormsg: "cannot instantiate B" - line: 14 nimout: ''' got: <typedesc[int]> but expected: <T: string or float> diff --git a/tests/errmsgs/twrong_at_operator.nim b/tests/errmsgs/twrong_at_operator.nim index d7bfca415..438186f01 100644 --- a/tests/errmsgs/twrong_at_operator.nim +++ b/tests/errmsgs/twrong_at_operator.nim @@ -1,8 +1,7 @@ discard """ errormsg: "type mismatch: got <array[0..0, typedesc[int]]>" -line: 22 nimout: ''' -twrong_at_operator.nim(22, 30) Error: type mismatch: got <array[0..0, typedesc[int]]> +twrong_at_operator.nim(21, 30) Error: type mismatch: got <array[0..0, typedesc[int]]> but expected one of: proc `@`[IDX, T](a: sink array[IDX, T]): seq[T] first type mismatch at position: 1 diff --git a/tests/errmsgs/twrongcolon.nim b/tests/errmsgs/twrongcolon.nim index 20063cbc4..06e802eb7 100644 --- a/tests/errmsgs/twrongcolon.nim +++ b/tests/errmsgs/twrongcolon.nim @@ -1,11 +1,10 @@ discard """ errormsg: "in expression ' do:" nimout: ''' -twrongcolon.nim(11, 12) Error: in expression ' do: +twrongcolon.nim(10, 12) Error: in expression ' do: 890': identifier expected, but found '' ''' -line: 11 """ var n: int : 890 |