diff --git a/src/test/java/org/openrewrite/kotlin/tree/FunctionTypeTest.java b/src/test/java/org/openrewrite/kotlin/tree/FunctionTypeTest.java index 1508c3267..dab8c8180 100644 --- a/src/test/java/org/openrewrite/kotlin/tree/FunctionTypeTest.java +++ b/src/test/java/org/openrewrite/kotlin/tree/FunctionTypeTest.java @@ -16,6 +16,7 @@ package org.openrewrite.kotlin.tree; import org.junit.jupiter.api.Test; +import org.junitpioneer.jupiter.ExpectedToFail; import org.openrewrite.Issue; import org.openrewrite.test.RewriteTest; @@ -130,4 +131,18 @@ fun foo() : suspend ( param : Int ) -> Unit = { } ) ); } + + @ExpectedToFail + void trailingAnnotation() { + rewriteRun( + kotlin( + """ + @Target(AnnotationTarget.TYPE) + @Retention(AnnotationRetention.SOURCE) + annotation class Anno + abstract class Test : suspend @Anno ( ) -> String + """ + ) + ); + } }