fixes #5055
This commit is contained in:
parent
7b44896e03
commit
8494338bcb
4 changed files with 20 additions and 7 deletions
14
tests/ccgbugs/tobjconstr_regression.nim
Normal file
14
tests/ccgbugs/tobjconstr_regression.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
discard """
|
||||
output: "@[(username: user, role: admin, description: desc, email_addr: email), (username: user, role: admin, description: desc, email_addr: email)]"
|
||||
"""
|
||||
|
||||
type
|
||||
User = object of RootObj
|
||||
username, role, description, email_addr: string
|
||||
|
||||
# bug 5055
|
||||
let us4 = @[
|
||||
User(username:"user", role:"admin", description:"desc", email_addr:"email"),
|
||||
User(username:"user", role:"admin", description:"desc", email_addr:"email"),
|
||||
]
|
||||
echo us4
|
||||
Loading…
Add table
Add a link
Reference in a new issue