openrewrite / rewrite-kotlin

Work-in-progress implementation of Kotlin language support for OpenRewrite.
Apache License 2.0
43 stars 12 forks source link

PSI association issue: MemberReference is missing method invocation type. #540

Closed traceyyoshima closed 9 months ago

traceyyoshima commented 9 months ago
    @Issue("https://github.com/openrewrite/rewrite-kotlin/issues/451")
    @Test
    void parenthesesAsSelect() {
        rewriteRun(
          kotlin(
            """
              open class A(
                val foo : ( ( Any ) -> A) -> A
              )
              class B : A ( foo = { x -> ( :: A ) ( x ) } ) {
                @Suppress("UNUSED_PARAMETER")
                fun mRef(a: Any) {}
              }
              """
          )
        );
    }