Skip to content

Commit 85e062f

Browse files
committed
Fix test
Semicolons in match types are not allowed. They were never allowed in syntax.md, but the parser accepted them. The fix is to just drop the semicolon.
1 parent 28b33fd commit 85e062f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run-macros/tasty-tree-map/quoted_2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ object Test {
4242
println(identityMaped({ val x: Int | Any = 60; x }))
4343
println(identityMaped({ def f(x: => Int): Int = x; f(61) }))
4444
println(identityMaped({ type T[X] = X; val x: T[Int] = 62; x }))
45-
println(identityMaped({ type T[X] = X match { case Int => String; case String => Int }; val x: T[String] = 63; x }))
45+
println(identityMaped({ type T[X] = X match { case Int => String case String => Int }; val x: T[String] = 63; x }))
4646
println(identityMaped((Nil: List[Int]) match { case _: List[t] => 64 }))
4747
println(identityMaped({ object F { type T = Int }; val x: F.T = 65; x }))
4848
println(identityMaped({ val x: Foo { type T = Int } = new Foo { type T = Int; def y: Int = 66 }; x.y }))

0 commit comments

Comments
 (0)