File tree 2 files changed +4
-1
lines changed
compiler/src/dotty/tools/dotc/parsing
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -928,6 +928,7 @@ object Parsers {
928
928
lookahead.nextToken()
929
929
while (parens != 0 && lookahead.token != EOF ) {
930
930
val token = lookahead.token
931
+ if (token == XMLSTART ) return true
931
932
if (token == LPAREN ) parens += 1
932
933
else if (token == RPAREN ) parens -= 1
933
934
lookahead.nextToken()
Original file line number Diff line number Diff line change @@ -54,10 +54,12 @@ object Test {
54
54
// Pattern match with if guard.
55
55
// Note: This passes in Scala 2.12.18 and 2.13.12 too.
56
56
val auxiliary8 = for (case _ @ <foo >FooBar </foo > <- Seq (xml) if true )
57
+ yield ()
57
58
// Note: These pass in Scala 2.12.18 and 2.13.12.
58
59
val auxiliary9 = for (case _ @ <foo >FooBar </foo ><- Seq (xml) if true )
60
+ yield ()
59
61
val auxiliary10 = for (case _ @ <foo >FooBar </foo ><- Seq (xml) if true )
60
- yield ()
62
+ yield ()
61
63
62
64
}
63
65
You can’t perform that action at this time.
0 commit comments