From 5412766a834fa730865628a57c767f36eb1b4dc4 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Mon, 26 Jan 2015 22:35:44 -0800 Subject: SI-9116 Set.subsets has a param list Now both of the overloaded variants have a parameter list. This seems to make type inference happier. Or it makes someone happier. The user is unaware whether `subsets()` takes a default arg. But happily, empty application still kicks in. --- test/files/run/settings-parse.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/files/run/settings-parse.scala') diff --git a/test/files/run/settings-parse.scala b/test/files/run/settings-parse.scala index 2754feb972..8d83caf68f 100644 --- a/test/files/run/settings-parse.scala +++ b/test/files/run/settings-parse.scala @@ -3,9 +3,8 @@ import scala.language.postfixOps import scala.tools.nsc._ object Test { - val tokens = List("", "-deprecation", "foo.scala") - val subsets = tokens.toSet.subsets.toList - val permutations0 = subsets.flatMap(_.toList.permutations).distinct + val tokens = "" :: "-deprecation" :: "foo.scala" :: Nil + val permutations0 = tokens.toSet.subsets.flatMap(_.toList.permutations).toList.distinct def runWithCp(cp: String) = { val permutations = permutations0 flatMap ("-cp CPTOKEN" :: _ permutations) -- cgit v1.2.3