Skip to content

Conversation

@lucacasonato
Copy link
Member

This includes type params, function params, and params declared through infer X in type annotations.

This includes type params, function params, and params declared through `infer X` in type annotations.
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Just a couple comments.

}
}

fn fill_expr(&self, symbol_id: SymbolId, expr: &Expr) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment here explaining why we need to fill expressions. I got confused by this initially.

Pat::Array(n) => n.type_ann.as_ref(),
Pat::Object(n) => n.type_ann.as_ref(),
Pat::Rest(_) | Pat::Invalid(_) | Pat::Expr(_) | Pat::Assign(_) => {
unreachable!()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a comment saying why this is unreachable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants