We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d9f61 commit c762188Copy full SHA for c762188
compiler/test/dotty/tools/repl/ReplCompilerTests.scala
@@ -170,4 +170,9 @@ class ReplCompilerTests extends ReplTest {
170
run("""val a = "hello"; val x: a.type = a""")
171
assertEquals("val a: String = hello\nval x: a.type = hello", storedOutput().trim)
172
}
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
+ }
178
0 commit comments