Skip to content

Recursion doesn't work with arrow functions #187

Description

@gakada

Input

const f = (i: number): number => (i <= 1 ? i : i * f(i - 1))

Output

local f = function(i) return (__TS__Ternary(i<=1, function() return i end, function() return i*f(i-1) end)) end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions