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 7cff9dd commit ddcecd1Copy full SHA for ddcecd1
docs/_docs/internals/syntax.md
@@ -319,7 +319,7 @@ TypeCaseClause ::= ‘case’ (InfixType | ‘_’) ‘=>’ Type [semi]
319
320
Pattern ::= Pattern1 { ‘|’ Pattern1 } Alternative(pats)
321
Pattern1 ::= PatVar ‘:’ RefinedType Bind(name, Typed(Ident(wildcard), tpe))
322
- | SimpleLiteral ‘:’ RefinedType Bind(name, Typed(Ident(wildcard), tpe))
+ | SimpleLiteral ‘:’ RefinedType Typed(pat, tpe)
323
| Pattern2
324
Pattern2 ::= [id ‘@’] InfixPattern [‘*’] Bind(name, pat)
325
InfixPattern ::= SimplePattern { id [nl] SimplePattern } InfixOp(pat, op, pat)
0 commit comments