diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2019-08-30 23:26:45 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-08-31 08:26:45 +0200 |
commit | 9ae0dd611f77c4cd7122e6ac77e0278c1bafbbd7 (patch) | |
tree | c17bac39c0309f3e5c342bce74f525b060de6fee /tests/errmsgs | |
parent | f9600b7207e45573ee066ec7c9145df113ff5b99 (diff) | |
download | Nim-9ae0dd611f77c4cd7122e6ac77e0278c1bafbbd7.tar.gz |
typeToString can now show (recursively) resolved type aliases; fixes #8569 #8083 #8570 (#11678)
* nested typeToString * typeToString: preferResolved * add test * fix test * preferMixed * fix tests
Diffstat (limited to 'tests/errmsgs')
-rw-r--r-- | tests/errmsgs/tsigmatch.nim | 2 | ||||
-rw-r--r-- | tests/errmsgs/twrong_at_operator.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/errmsgs/tsigmatch.nim b/tests/errmsgs/tsigmatch.nim index 42a98a891..21e2c217d 100644 --- a/tests/errmsgs/tsigmatch.nim +++ b/tests/errmsgs/tsigmatch.nim @@ -36,7 +36,7 @@ tsigmatch.nim(143, 13) Error: type mismatch: got <array[0..0, proc (x: int){.gcs but expected one of: proc takesFuncs(fs: openArray[proc (x: int) {.gcsafe, locks: 0.}]) first type mismatch at position: 1 - required type for fs: openarray[proc (x: int){.closure, gcsafe, locks: 0.}] + required type for fs: openArray[proc (x: int){.closure, gcsafe, locks: 0.}] but expression '[proc (x: int) {.gcsafe, locks: 0.} = echo [x]]' is of type: array[0..0, proc (x: int){.gcsafe, locks: 0.}] expression: takesFuncs([proc (x: int) {.gcsafe, locks: 0.} = echo [x]]) diff --git a/tests/errmsgs/twrong_at_operator.nim b/tests/errmsgs/twrong_at_operator.nim index edf584094..9933b0f39 100644 --- a/tests/errmsgs/twrong_at_operator.nim +++ b/tests/errmsgs/twrong_at_operator.nim @@ -6,7 +6,7 @@ twrong_at_operator.nim(22, 30) Error: type mismatch: got <array[0..0, type int]> but expected one of: proc `@`[T](a: openArray[T]): seq[T] first type mismatch at position: 1 - required type for a: openarray[T] + required type for a: openArray[T] but expression '[int]' is of type: array[0..0, type int] proc `@`[IDX, T](a: sink array[IDX, T]): seq[T] first type mismatch at position: 1 |