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/pos/t9116.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/pos/t9116.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t9116.scala b/test/files/pos/t9116.scala new file mode 100644 index 0000000000..16b04c2e6b --- /dev/null +++ b/test/files/pos/t9116.scala @@ -0,0 +1,7 @@ + +trait X { + List(1, 2, 3).toSet.subsets.map(_.toList) // ok now + + List(1, 2, 3).toSet.subsets().map(_.toList) // now also + List(1, 2, 3).toSet.subsets(2).map(_.toList) // still ok +} -- cgit v1.2.3