Skip to content

Make macro work in place of anonymous function #11

Description

@ryanstull

The macro should work in the following situation:

case class A(b: B)
case class B(c: C)
case class C(d: D)
case class D(s: String)

def expectFunction[T](f: A => T): T = ...

expectFunction(?(_.b.c.d.s))

Current it works if you do:

expectFunction(a => ?(a.b.c.d.s))

but it would be nice to be able to use the simpler syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions