From 0cf47bdb5b1b57589883544933af56a4af848492 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 17 Aug 2013 07:44:50 -0700 Subject: Simplified the MaybeBoundTyped extractor a bit. --- test/files/run/patmat-bind-typed.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/run/patmat-bind-typed.scala (limited to 'test/files/run/patmat-bind-typed.scala') diff --git a/test/files/run/patmat-bind-typed.scala b/test/files/run/patmat-bind-typed.scala new file mode 100644 index 0000000000..10de921c51 --- /dev/null +++ b/test/files/run/patmat-bind-typed.scala @@ -0,0 +1,8 @@ +object Test { + def f(xs: List[Any]) = for (key @ (dummy: String) <- xs) yield key + + def main(args: Array[String]): Unit = { + f("abc" :: Nil) foreach println + f(5 :: Nil) foreach println + } +} -- cgit v1.2.3