Skip to content

Commit c762188

Browse files
committed
Fix #6574: add test
1 parent d8d9f61 commit c762188

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
@@ -170,4 +170,9 @@ class ReplCompilerTests extends ReplTest {
170170
run("""val a = "hello"; val x: a.type = a""")
171171
assertEquals("val a: String = hello\nval x: a.type = hello", storedOutput().trim)
172172
}
173+
174+
@Test def i6574 = fromInitialState { implicit state =>
175+
run("val a: 1 | 0 = 1")
176+
assertEquals("val a: 1 | 0 = 1", storedOutput().trim)
177+
}
173178
}

0 commit comments

Comments
 (0)