Skip to content

Commit d189fa8

Browse files
committed
Fix #2789: Add regression test
Fixed in 023303d
1 parent 67e34d7 commit d189fa8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/test/dotty/tools/repl/ReplCompilerTests.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,9 @@ class ReplCompilerTests extends ReplTest {
115115
// storedOutput().startsWith("scala.MatchError: null")
116116
// }
117117
}
118+
119+
@Test def i2789: Unit = fromInitialState { implicit state =>
120+
compile("(x: Int) => println(x)")
121+
assertTrue(storedOutput().startsWith("val res0: Int => Unit ="))
122+
}
118123
}

0 commit comments

Comments
 (0)