fixes #563
This commit is contained in:
parent
6cc06cd35d
commit
e698d6255b
2 changed files with 15 additions and 0 deletions
|
|
@ -6,3 +6,17 @@ var s{.exportc.}: seq[TFoo] = @[]
|
|||
s.add TFoo(x: 42)
|
||||
|
||||
echo s[0].x
|
||||
|
||||
|
||||
# bug #563
|
||||
type
|
||||
Foo =
|
||||
object {.inheritable.}
|
||||
x: int
|
||||
|
||||
Bar =
|
||||
object of Foo
|
||||
y: int
|
||||
|
||||
var a = Bar(y: 100, x: 200) # works
|
||||
var b = Bar(x: 100, y: 200) # used to fail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue