Skip to content

Commit a90ce96

Browse files
committed
Fix #4586: Add regression test
1 parent b3d3b33 commit a90ce96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/pos/i4586.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Foo {
2+
inline def foo1(f: => Int => Int): Int = f(7)
3+
def bar1 = foo1(x => x + 1)
4+
}

0 commit comments

Comments
 (0)