Skip to content

Commit

Permalink
Fixed order of initialization bug with strings. Calling stuff outside…
Browse files Browse the repository at this point in the history
… of main is such an interesting concept. Thanks Damian/damianpop
  • Loading branch information
nddrylliog committed Dec 24, 2010
1 parent 0fe8877 commit ab80383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/rock/middle/StringLiteral.ooc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ StringLiteral: class extends Literal {
vDecl isStatic = true
vAcc := VariableAccess new(vDecl, token)

trail module() body add(vDecl)
trail module() body add(0, vDecl)
if(!parent replace(this, vAcc)) {
res throwError(CouldntReplace new(token, this, vAcc, trail))
}
Expand Down

0 comments on commit ab80383

Please sign in to comment.