Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nddrylliog/rock
Browse files Browse the repository at this point in the history
  • Loading branch information
fredreichbier committed Jun 23, 2010
2 parents b68d5c8 + d4fc433 commit a0e3fec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/rock/middle/ClassDecl.ooc
Expand Up @@ -40,10 +40,12 @@ ClassDecl: class extends TypeDecl {
addFunction(FunctionDecl new(This DEFAULTS_FUNC_NAME, token))
}
}
if(!functions contains(This LOAD_FUNC_NAME)) {
fDecl := FunctionDecl new(This LOAD_FUNC_NAME, token)
fDecl setStatic(true)
addFunction(fDecl)
if(getNonMeta() class == ClassDecl || getNonMeta() class == CoverDecl) {
if(!functions contains(This LOAD_FUNC_NAME)) {
fDecl := FunctionDecl new(This LOAD_FUNC_NAME, token)
fDecl setStatic(true)
addFunction(fDecl)
}
}
}

Expand Down

0 comments on commit a0e3fec

Please sign in to comment.