Permalink
Browse files

Use TreeInfo#isSelfConstrCall, rather than the hand-rolled version.

  • Loading branch information...
retronym committed May 11, 2012
1 parent d35e74e commit 10289ac20726e5236f67a8f15ef006cd9cd22ebc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -1279,7 +1279,7 @@ abstract class RefChecks extends InfoTransform with reflect.internal.transform.R
}
def transformStat(tree: Tree, index: Int): List[Tree] = tree match {
case Apply(Select(This(_), nme.CONSTRUCTOR), args) =>
case t if treeInfo.isSelfConstrCall(t) =>
assert(index == 0, index)
val t = transform(tree)
if (currentLevel.maxindex > 0) {

0 comments on commit 10289ac

Please sign in to comment.