openrewrite / rewrite-kotlin

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

Idempotent print issue: trailing annotation on function type reference #553

Open traceyyoshima opened 6 months ago

traceyyoshima commented 6 months ago
    @Test
    void trailingAnnotationOnFunctionTypeReference() {
        rewriteRun(
          kotlin(
            """
              @Target(AnnotationTarget.TYPE)
              @Retention(AnnotationRetention.SOURCE)
              annotation class Anno
              abstract class  Test   :    suspend @Anno (  )   ->    String
              """
          )
        );
    }