Skip to content

Liquid Types Optimization #114

@alcides

Description

@alcides
def fun (x:Int | x > 2) : Int {
   if x > 0 then 100 else 200
}

When optimized, it should return:

def fun (x:Int | x > 2) : Int {
   100
}

Alternatively, the compiler should emit an warning for the dead else branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions