fixes #2774
This commit is contained in:
parent
d94fcb38f0
commit
54750f608d
2 changed files with 15 additions and 1 deletions
14
tests/vm/tconstobj.nim
Normal file
14
tests/vm/tconstobj.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
discard """
|
||||
output: '''(name: hello)'''
|
||||
"""
|
||||
|
||||
# bug #2774
|
||||
|
||||
type Foo = object
|
||||
name: string
|
||||
|
||||
const fooArray = [
|
||||
Foo(name: "hello")
|
||||
]
|
||||
|
||||
echo fooArray[0]
|
||||
Loading…
Add table
Add a link
Reference in a new issue