Skip to content

Commit

Permalink
Correctly resolve 'parent' to parent not self
Browse files Browse the repository at this point in the history
There was a small typo causing the parent keyword to be resolved to
the class containing it, instead of that class's parent.
  • Loading branch information
theospears committed Oct 2, 2011
1 parent 91592e6 commit 10624e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/phantm/phases/SymbolsCollectionPhase.scala
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ case class CollectSymbols(node: Tree) extends ASTTraversal[SymContext](node, Sym
} else if (id.value == "parent") {
cs.parent match {
case Some(pcs) =>
id.setSymbol(cs)
id.setSymbol(pcs)
case None =>
Reporter.error("Class '"+cs.name+"' has no parent", id);
}
Expand Down

0 comments on commit 10624e2

Please sign in to comment.