Skip to content

Missing Colon in type annotations? #3

@willow-ahrens

Description

@willow-ahrens

Is there a missing colon in the type annotations for functions?

e.g. From the readme:

function main()
    :Int
    
    stuff...
end

Currently, :Int is just a symbol which gets ignored since it's not returned. Was it meant to be a return type annotation?

function main()::Int
    
    stuff...
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions