aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast/CheckTrees.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-10-26 10:29:45 +0200
committerMartin Odersky <odersky@gmail.com>2013-10-26 10:29:50 +0200
commit961c0569eb0a54cf95363bab79add43da310984c (patch)
treeefe723b1b6a182ec0f99c5f3d33b78a5a90d8bdf /src/dotty/tools/dotc/ast/CheckTrees.scala
parent8c1cc60c7ef9c13b312fceaf6cb8c8c129753344 (diff)
downloaddotty-961c0569eb0a54cf95363bab79add43da310984c.tar.gz
dotty-961c0569eb0a54cf95363bab79add43da310984c.tar.bz2
dotty-961c0569eb0a54cf95363bab79add43da310984c.zip
Fixed handling of varargs
Diffstat (limited to 'src/dotty/tools/dotc/ast/CheckTrees.scala')
-rw-r--r--src/dotty/tools/dotc/ast/CheckTrees.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/ast/CheckTrees.scala b/src/dotty/tools/dotc/ast/CheckTrees.scala
index 290d18b0c..cce68c557 100644
--- a/src/dotty/tools/dotc/ast/CheckTrees.scala
+++ b/src/dotty/tools/dotc/ast/CheckTrees.scala
@@ -88,7 +88,7 @@ object CheckTrees {
check(tp <:< absMembers.head.info)
case _ =>
check(expr.isValueOrPattern)
- check(expr.tpe <:< tpt.tpe)
+ check(expr.tpe <:< tpt.tpe.translateParameterized(defn.RepeatedParamClass, defn.SeqClass))
}
case NamedArg(name, arg) =>
case Assign(lhs, rhs) =>