openrewrite / rewrite-kotlin

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

Parsing issue: MethodInvocations created in place of SAM constructor calls. #529

Closed traceyyoshima closed 6 months ago

traceyyoshima commented 6 months ago

Discovered by: https://github.com/openrewrite/rewrite-kotlin/issues/527.

                 val s = java.util.function.Supplier<String> {
                     @Suppress("UNCHECKED_CAST")
                     requireNotNull("x")
                 }