diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/bug1136.check | 2 | ||||
-rw-r--r-- | test/files/pos/bug1136.scala | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/bug1136.check b/test/files/pos/bug1136.check new file mode 100644 index 0000000000..0747cddefb --- /dev/null +++ b/test/files/pos/bug1136.check @@ -0,0 +1,2 @@ +warning: there were unchecked warnings; re-run with -unchecked for details +one warning found diff --git a/test/files/pos/bug1136.scala b/test/files/pos/bug1136.scala new file mode 100644 index 0000000000..fcceaf5473 --- /dev/null +++ b/test/files/pos/bug1136.scala @@ -0,0 +1,8 @@ +object test { + def foo(s: Int*): Unit = { + s.toList match { + case t: List[Int] => foo(t: _*) + case _ => + } + } +} |