mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Parse effectful arrow in function annotations
This commit is contained in:
parent
1a5776653c
commit
ef4eeb5c1a
30 changed files with 178 additions and 19 deletions
|
@ -881,8 +881,9 @@ impl<'a> Normalize<'a> for Pattern<'a> {
|
|||
impl<'a> Normalize<'a> for TypeAnnotation<'a> {
|
||||
fn normalize(&self, arena: &'a Bump) -> Self {
|
||||
match *self {
|
||||
TypeAnnotation::Function(a, b) => TypeAnnotation::Function(
|
||||
TypeAnnotation::Function(a, arrow, b) => TypeAnnotation::Function(
|
||||
arena.alloc(a.normalize(arena)),
|
||||
arrow,
|
||||
arena.alloc(b.normalize(arena)),
|
||||
),
|
||||
TypeAnnotation::Apply(a, b, c) => TypeAnnotation::Apply(a, b, c.normalize(arena)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue