Skip to content

Commit

Permalink
far from perfect, but compiles *some* code
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Wenger committed Jun 4, 2012
1 parent 6974920 commit ea8deb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/rock/middle/ClassDecl.ooc
Expand Up @@ -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
}

Expand All @@ -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) {
Expand Down

0 comments on commit ea8deb6

Please sign in to comment.