allow "let x : A = e in s" with type annotation
This commit is contained in:
parent
54db7e27ef
commit
aa4ead592a
2 changed files with 15 additions and 7 deletions
|
@ -422,6 +422,8 @@ tests = "parser" :- [
|
|||
`(Let (PQ One _, PV "x" {}, V "y" {}) (V "z" {}) _),
|
||||
parseMatch term "letω x = y in z"
|
||||
`(Let (PQ Any _, PV "x" {}, V "y" {}) (V "z" {}) _),
|
||||
parseMatch term "letω x : X = y in z"
|
||||
`(Let (PQ Any _, PV "x" {}, Ann (V "y" {}) (V "X" {}) _) (V "z" {}) _),
|
||||
parseMatch term "let ω.x = y in z"
|
||||
`(Let (PQ Any _, PV "x" {}, V "y" {}) (V "z" {}) _),
|
||||
parseMatch term "let x = y1 y2 in z1 z2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue