summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-04-16 23:16:09 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-04-21 13:05:28 +0200
commit2304a78a00fe45cb05d1c3b77e4381813109cbfd (patch)
tree0392e9823c5bd227867dfafa7db7647606f0b699 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parente112db6fc4afe0a7721ec87423eacd405fa6c89b (diff)
downloadscala-2304a78a00fe45cb05d1c3b77e4381813109cbfd.tar.gz
scala-2304a78a00fe45cb05d1c3b77e4381813109cbfd.tar.bz2
scala-2304a78a00fe45cb05d1c3b77e4381813109cbfd.zip
SI-7345 Drive by refactoring of pattern matching for `arg: _*`.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-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 efd4fd804f..4d8c9d84a5 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -1591,7 +1591,7 @@ abstract class RefChecks extends InfoTransform with scala.reflect.internal.trans
enterReference(tree.pos, tpt.tpe.typeSymbol)
tree
- case Typed(_, Ident(tpnme.WILDCARD_STAR)) if !isRepeatedParamArg(tree) =>
+ case treeInfo.WildcardStarArg(_) if !isRepeatedParamArg(tree) =>
unit.error(tree.pos, "no `: _*' annotation allowed here\n"+
"(such annotations are only allowed in arguments to *-parameters)")
tree