Skip to content

Commit

Permalink
Closes #881
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Jul 3, 2015
1 parent 5a715b0 commit 87a8236
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/rock/middle/ArrayLiteral.ooc
Expand Up @@ -141,8 +141,10 @@ ArrayLiteral: class extends Literal {
cast getType()
case vDecl: VariableDecl =>
parentIdx += 1
grandpa := trail peek(parentIdx)
vDecl getType()
case binOp: BinaryOp =>
parentIdx += 1
binOp left getType()
case =>
null
}
Expand Down Expand Up @@ -175,7 +177,7 @@ ArrayLiteral: class extends Literal {
}

if (isGood && (type == null || !type equals?(outerType))) {
type = outerType
type = outerType clone()

if (shouldReplace) {
readyToUnwrap = false
Expand Down

0 comments on commit 87a8236

Please sign in to comment.