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 2c459cd commit 27ba2e1Copy full SHA for 27ba2e1
docs/_docs/reference/syntax.md
@@ -306,7 +306,10 @@ TypeCaseClauses ::= TypeCaseClause { TypeCaseClause }
306
TypeCaseClause ::= ‘case’ (InfixType | ‘_’) ‘=>’ Type [semi]
307
308
Pattern ::= Pattern1 { ‘|’ Pattern1 }
309
-Pattern1 ::= Pattern2 [‘:’ RefinedType]
+Pattern1 ::= PatVar ‘:’ RefinedType
310
+ | [‘-’] integerLiteral ‘:’ RefinedType
311
+ | [‘-’] floatingPointLiteral ‘:’ RefinedType
312
+ | Pattern2
313
Pattern2 ::= [id ‘@’] InfixPattern [‘*’]
314
InfixPattern ::= SimplePattern { id [nl] SimplePattern }
315
SimplePattern ::= PatVar
0 commit comments