fix several bugs with repr (#13386)
This commit is contained in:
parent
f6d45b40a5
commit
eec07b4e84
4 changed files with 28 additions and 8 deletions
|
|
@ -1,8 +1,7 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got <byte, int literal(0)>"
|
||||
nimout: '''but expected one of:
|
||||
proc fun0[T1: int | float |
|
||||
object | array | seq](a1: T1; a2: int)
|
||||
proc fun0[T1: int | float | object | array | seq](a1: T1; a2: int)
|
||||
first type mismatch at position: 1
|
||||
required type for a1: T1: int or float or object or array or seq[T]
|
||||
but expression 'byte(1)' is of type: byte
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue