parent
de6b2e88d2
commit
2339542832
4 changed files with 36 additions and 22 deletions
5
tests/tuples/ttypedesc_in_tuple_a.nim
Normal file
5
tests/tuples/ttypedesc_in_tuple_a.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
discard """
|
||||
errormsg: "typedesc not allowed as tuple field."
|
||||
"""
|
||||
|
||||
var bar = (a: int, b: 1)
|
||||
5
tests/tuples/ttypedesc_in_tuple_b.nim
Normal file
5
tests/tuples/ttypedesc_in_tuple_b.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
discard """
|
||||
errormsg: "Mixing types and values in tuples is not allowed."
|
||||
"""
|
||||
|
||||
var bar = (int, 1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue