From 8f08b714424b3ada8a12156bdc3fd43e13ad09ee Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Thu, 26 May 2016 20:50:28 +0200 Subject: Annotate repeated params with `case` flag to indicate that they are legal One drawback with this approach is that the type seems to propagate. I.e. if the return type of an expression is `repeated` then the enclosing variable will get the `repeated` type instead of getting the expected `Seq` type --- tests/disabled/pos/t3480.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/disabled/pos') diff --git a/tests/disabled/pos/t3480.scala b/tests/disabled/pos/t3480.scala index ba2e1a4b8..55dde6634 100644 --- a/tests/disabled/pos/t3480.scala +++ b/tests/disabled/pos/t3480.scala @@ -1,4 +1,4 @@ object Test { val List(_: _*) = List(1) - val Array( who, what : _* ) = "Eclipse plugin cannot not handle this" split (" ") + val Array(who, what: _*) = "Eclipse plugin cannot not handle this" split (" ") } -- cgit v1.2.3