From 375db8c398fd23aa81b21f55c8bf13da33fbdad1 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Sun, 1 Feb 2015 20:09:55 -0500 Subject: [PATCH] Make base types `object of RootObj` Thanks to @jyapayne for noticing this in #29! --- content/oop_macro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/oop_macro.md b/content/oop_macro.md index 3363943..f011e0c 100644 --- a/content/oop_macro.md +++ b/content/oop_macro.md @@ -156,7 +156,7 @@ macro class*(head: expr, body: stmt): stmt {.immediate.} = result.insert(0, if baseName == nil: quote do: - type `typeName` = ref object + type `typeName` = ref object of RootObj else: quote do: type `typeName` = ref object of `baseName`