Skip to content

facilitate multiple type inference passes #52

Description

@jan-ferdinand

The compiler's ergonomics increase if not all types have to be explicitly given everywhere. This generally requires multiple inferring passes. Currently, the type checker fails hard if a type cannot be inferred during its first invocation, prohibiting deferring inferring to a later point.

Change the type checker's fn derive_annotate_expr_type to return a Result<_, _> instead of panic!ing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions