diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-02 02:27:04 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-02 02:27:04 -0700 |
commit | 2d68576e91a0dc5a2a119ef2df68458a0e139ce3 (patch) | |
tree | f171769a264edbc31e752cd6bf81b925c5b5b8a2 /test/files | |
parent | fd3118c3d2c99f24ae226d50b5487e235bdbd4d1 (diff) | |
parent | d9d5dcd1e21c215826a915db47eaf993621e0441 (diff) | |
download | scala-2d68576e91a0dc5a2a119ef2df68458a0e139ce3.tar.gz scala-2d68576e91a0dc5a2a119ef2df68458a0e139ce3.tar.bz2 scala-2d68576e91a0dc5a2a119ef2df68458a0e139ce3.zip |
Merge pull request #771 from retronym/ticket/4176-2
SI-4176 A repeat dose of repeated parameter type sanitization.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t4176b.scala | 5 | ||||
-rw-r--r-- | test/files/pos/t5967.scala | 6 |
2 files changed, 11 insertions, 0 deletions
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]) +} diff --git a/test/files/pos/t5967.scala b/test/files/pos/t5967.scala new file mode 100644 index 0000000000..eb9bd6dfa7 --- /dev/null +++ b/test/files/pos/t5967.scala @@ -0,0 +1,6 @@ +object Test { + def f(a: Int*) = a match { + case 0 :: Nil => "List(0)! My favorite Seq!" + case _ => a.toString + } +} |