typeToString: type float => typedesc[float] (#17011)
* typeToString: type float => typedesc[float] * fixup * fix tests
This commit is contained in:
parent
f57774e1e7
commit
e40ff24c23
13 changed files with 21 additions and 18 deletions
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got <type int>"
|
||||
errormsg: "type mismatch: got <typedesc[int]>"
|
||||
line: 6
|
||||
"""
|
||||
# bug #3079, #1146
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got <type int> but expected 'int'"
|
||||
errormsg: "type mismatch: got <typedesc[int]> but expected 'int'"
|
||||
file: "ttypenoval.nim"
|
||||
line: 38
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
errormsg: "invalid type: 'type seq[tuple[title: string, body: string]]' for var"
|
||||
errormsg: "invalid type: 'typedesc[seq[tuple[title: string, body: string]]]' for var"
|
||||
line: 7
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
discard """
|
||||
errormsg: "invalid type: 'type Table' for const"
|
||||
errormsg: "invalid type: 'typedesc[Table]' for const"
|
||||
file: "typedescs2.nim"
|
||||
line: 16
|
||||
"""
|
||||
|
||||
# issue #9961
|
||||
# bug #9961
|
||||
|
||||
import typetraits
|
||||
import tables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue