From ea8deb6a6216eba8aa8861007f0ad900e55f8eac Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Tue, 5 Jun 2012 00:54:41 +0200 Subject: [PATCH] far from perfect, but compiles *some* code --- source/rock/middle/ClassDecl.ooc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/rock/middle/ClassDecl.ooc b/source/rock/middle/ClassDecl.ooc index 7b661dff..e36d26c5 100644 --- a/source/rock/middle/ClassDecl.ooc +++ b/source/rock/middle/ClassDecl.ooc @@ -57,7 +57,9 @@ ClassDecl: class extends TypeDecl { copy module = module typeArgs each(|ta| copy addTypeArg(ta clone())) - // TODO: missing things here probably. + variables each(|k, v| copy getMeta() addVariable(v clone())) + getMeta() functions each(|fuuuuu| copy getMeta() addFunction(fuuuuu clone())) + copy } @@ -74,6 +76,7 @@ ClassDecl: class extends TypeDecl { } specialize: func (tts: Type) { + "Specializing %s with %s" printfln(toString(), tts toString()) ta := tts getTypeArgs() if (ta size != typeArgs size) {