Skip to content

Commit 5a9a8c2

Browse files
authored
Merge pull request #4637 from dotty-staging/fix-i4586
Fix #4586: Add regression test
2 parents b3d3b33 + a90ce96 commit 5a9a8c2

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)