summary refs log blame commit diff stats
path: root/tests/vm/tconstobj.nim
blob: 414708945f224d51332852fdf8e14ea798904bb1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                             
discard """
  output: '''(name: hello)'''
"""

# bug #2774

type Foo = object
  name: string

const fooArray = [
  Foo(name: "hello")
]

echo fooArray[0]