Skip to content

Add support for recursion #88

@emilsoman

Description

@emilsoman

The following should type check successfully:

    fn a : Loop(Int | String) do
      if true do
        b()
      else
        123
      end
    end

    fn b : Loop(Int | String) do
      if true do
        c()
      else
        "abc"
      end
    end

    fn c : Loop(Int | String) do
      a()
    end

    fn d : Int | String do
      a()
    end

I noticed there was no issue for this, but @polvalente is already working on this in #87 so just adding it here.

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