From 05b2d9e7c251a2191d1dc1950f7f369ee9096bff Mon Sep 17 00:00:00 2001 From: CodeDoes Date: Wed, 20 Jun 2018 07:39:17 +0200 Subject: [PATCH] fixed for nim 0.18.0 --- oop_macro.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: