Skip to content

support underscore in relative effects #17

@lrytz

Description

@lrytz

recognize anonymous function expressions as relative effects. all of the following should work (hopefully - or is an explicit parameter type required?):

def m(f: Int => Int): Int @pure(f.apply(_)) = f(1)
def m(f: Int => Int): Int @pure(f.apply _) = f(1)
def m(f: Int => Int): Int @pure(x => f.apply(x)) = f(1)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions