diff options
Diffstat (limited to 'test/files/neg/t421.scala')
-rw-r--r-- | test/files/neg/t421.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/t421.scala b/test/files/neg/t421.scala new file mode 100644 index 0000000000..43f6c9dafd --- /dev/null +++ b/test/files/neg/t421.scala @@ -0,0 +1,8 @@ +object foo { + case class Bar(a:String, b:AnyRef, c:String*); + + Bar("foo","meets","bar") match { + case Bar("foo",_*) => error("huh?"); + } + +} |