File tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/parsing 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -976,7 +976,7 @@ object Parsers {
976
976
977
977
def typeDependingOn (location : Location .Value ): Tree =
978
978
if (location == Location .InParens ) typ()
979
- else if (location == Location .InPattern ) refinedType ()
979
+ else if (location == Location .InPattern ) infixType ()
980
980
else infixType()
981
981
982
982
/** Checks whether `t` is a wildcard type.
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ CaseClauses ::= CaseClause { CaseClause }
218
218
CaseClause ::= ‘case’ (Pattern [Guard] ‘=>’ Block | INT)
219
219
220
220
Pattern ::= Pattern1 { ‘|’ Pattern1 } Alternative(pats)
221
- Pattern1 ::= PatVar ‘:’ RefinedType Bind(name, Typed(Ident(wildcard), tpe))
221
+ Pattern1 ::= PatVar ‘:’ InfixType Bind(name, Typed(Ident(wildcard), tpe))
222
222
| Pattern2
223
223
Pattern2 ::= [id ‘@’] InfixPattern Bind(name, pat)
224
224
InfixPattern ::= SimplePattern { id [nl] SimplePattern } InfixOp(pat, op, pat)
You can’t perform that action at this time.
0 commit comments