From d9d5dcd1e21c215826a915db47eaf993621e0441 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sun, 24 Jun 2012 18:56:02 +0200 Subject: SI-4176 A repeat dose of repeated parameter type sanitization. - During eta expansion, treat parameters of type A* as Seq[A] - Do the same for method/class parameters as referred to by an Ident. Also fixes SI-5967, which shows up during pattern matching. --- test/files/pos/t4176b.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/files/pos/t4176b.scala (limited to 'test/files/pos/t4176b.scala') diff --git a/test/files/pos/t4176b.scala b/test/files/pos/t4176b.scala new file mode 100644 index 0000000000..11914c50c8 --- /dev/null +++ b/test/files/pos/t4176b.scala @@ -0,0 +1,5 @@ +object Test { + def foo(a: String*) = a + val fooEta = foo _ + (foo: Seq[String] => Seq[String]) +} -- cgit v1.2.3