Skip to content

Commit 20cbcca

Browse files
committed
Test that #1614 remains fixed.
1 parent bcb652b commit 20cbcca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/tailcall/i1614.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
object Foobar {
2+
def apply(): Option[String] = {
3+
def foobar[A](f: (String, String) => A): List[A] = List[String]() match {
4+
case _ :: ls => foobar(f)
5+
}
6+
foobar((a1, a2) => (a1 + a2)).headOption
7+
}
8+
}
9+

0 commit comments

Comments
 (0)