diff --git a/oop_macro.nim b/oop_macro.nim index 3a8da4f..625c441 100644 --- a/oop_macro.nim +++ b/oop_macro.nim @@ -288,7 +288,7 @@ macro class*(head: untyped, body: untyped): untyped = # OfInherit # Ident !"RootObj" # Empty <= We want to replace self - typeDecl[0][0][2][0][2] = recList + typeDecl#[[0]]#[0][2][0][2] = recList result.insert(0, typeDecl) when isMainModule: