Make base types object of RootObj
Thanks to @jyapayne for noticing this in #29!
This commit is contained in:
parent
fbb973b80a
commit
375db8c398
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ macro class*(head: expr, body: stmt): stmt {.immediate.} =
|
||||||
result.insert(0,
|
result.insert(0,
|
||||||
if baseName == nil:
|
if baseName == nil:
|
||||||
quote do:
|
quote do:
|
||||||
type `typeName` = ref object
|
type `typeName` = ref object of RootObj
|
||||||
else:
|
else:
|
||||||
quote do:
|
quote do:
|
||||||
type `typeName` = ref object of `baseName`
|
type `typeName` = ref object of `baseName`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue