This commit is contained in:
Araq 2014-11-27 08:36:58 +01:00
commit 7edf6fc1d2
3 changed files with 20 additions and 2 deletions

View file

@ -0,0 +1,16 @@
discard """
output: '''(FirstName: James, LastName: Franco)'''
"""
# bug #1547
import tables
type Person* = object
FirstName*: string
LastName*: string
let people = {
"001": Person(FirstName: "James", LastName: "Franco")
}.toTable()
echo people["001"]