Skip to content

Postfix function type annotations don't make it past type inference #62

@hmontero1205

Description

@hmontero1205

In the following example:

foo (w: Int) (z: Int) -> Int =
  w + z

I had to annotate the function args "inline". The following equivalent:

foo w z: Int -> Int -> Int =
  w + z

Results in this error being thrown: TypeError "Cannot change empty Ann type to Classes type".

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