* fixes #16069; refs https://github.com/nim-lang/RFCs/issues/257 [backport:1.2] [backport:1.4] * make tests green again
This commit is contained in:
parent
1d14b2c9e6
commit
d306a04466
8 changed files with 29 additions and 15 deletions
|
|
@ -3,6 +3,7 @@ discard """
|
|||
(name: "hello")
|
||||
(-1, 0)
|
||||
(FirstName: "James", LastName: "Franco")
|
||||
[1, 2, 3]
|
||||
'''
|
||||
"""
|
||||
|
||||
|
|
@ -74,4 +75,21 @@ static: # issue #11861
|
|||
|
||||
static: # issue #15662
|
||||
proc a(T: typedesc) = echo T.type
|
||||
a((int, int))
|
||||
a((int, int))
|
||||
|
||||
# bug #16069
|
||||
type
|
||||
E = enum
|
||||
val1, val2
|
||||
Obj = object
|
||||
case k: E
|
||||
of val1:
|
||||
x: array[3, int]
|
||||
of val2:
|
||||
y: uint32
|
||||
|
||||
const
|
||||
foo = [1, 2, 3]
|
||||
arr = Obj(k: val1, x: foo)
|
||||
|
||||
echo arr.x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue