Permalink
Browse files

Correctly resolve 'parent' to parent not self

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...
1 parent 91592e6 commit 10624e22029db11ef89fdda998dbb5b6b8bd4723 @theospears theospears committed Oct 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/scala/phantm/phases/SymbolsCollectionPhase.scala
@@ -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);
}

0 comments on commit 10624e2

Please sign in to comment.