Skip to content

Commit e3aeed1

Browse files
committed
Add test for cacheResult flag
1 parent 7a7f144 commit e3aeed1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/init/pos/recursive.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class A {
2+
def p(cb: Int => Int): Int = cb(0)
3+
4+
val q: List[Int] = {
5+
def f(x: Int): Int => Int = y => p(f(y))
6+
List(1, 2).map(f(3))
7+
}
8+
val n: Int = 4
9+
}

0 commit comments

Comments
 (0)