aboutsummaryrefslogtreecommitdiff
path: root/tests/patmat/for.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patmat/for.scala')
-rw-r--r--tests/patmat/for.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/patmat/for.scala b/tests/patmat/for.scala
new file mode 100644
index 000000000..ae9dcf65e
--- /dev/null
+++ b/tests/patmat/for.scala
@@ -0,0 +1,5 @@
+object Test {
+ def foo[A, B](l: List[(A, B)]): List[A] = {
+ for ((a, b) <- l) yield a
+ }
+} \ No newline at end of file