Skip to content

Commit ddcecd1

Browse files
liufengyunbishabosha
authored andcommitted
Update docs/docs/internals/syntax.md
Co-authored-by: Jamie Thompson <[email protected]>
1 parent 7cff9dd commit ddcecd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/internals/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ TypeCaseClause ::= ‘case’ (InfixType | ‘_’) ‘=>’ Type [semi]
319319
320320
Pattern ::= Pattern1 { ‘|’ Pattern1 } Alternative(pats)
321321
Pattern1 ::= PatVar ‘:’ RefinedType Bind(name, Typed(Ident(wildcard), tpe))
322-
| SimpleLiteral ‘:’ RefinedType Bind(name, Typed(Ident(wildcard), tpe))
322+
| SimpleLiteral ‘:’ RefinedType Typed(pat, tpe)
323323
| Pattern2
324324
Pattern2 ::= [id ‘@’] InfixPattern [‘*’] Bind(name, pat)
325325
InfixPattern ::= SimplePattern { id [nl] SimplePattern } InfixOp(pat, op, pat)

0 commit comments

Comments
 (0)