summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-05-11 08:41:25 +0200
committerJason Zaugg <jzaugg@gmail.com>2012-05-11 08:41:25 +0200
commit10289ac20726e5236f67a8f15ef006cd9cd22ebc (patch)
treeb486711ea07f0b10af1912a5033c321fbeaa0ae2
parentd35e74eb6bc13f1f354029c9439cef35aecd972b (diff)
downloadscala-10289ac20726e5236f67a8f15ef006cd9cd22ebc.tar.gz
scala-10289ac20726e5236f67a8f15ef006cd9cd22ebc.tar.bz2
scala-10289ac20726e5236f67a8f15ef006cd9cd22ebc.zip
Use TreeInfo#isSelfConstrCall, rather than the hand-rolled version.
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index b04d768baa..b878ce3a53 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/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) {