From bca9284b2b02205e42fc61707b7302bab1273683 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Mon, 22 Jan 2024 17:55:46 +0100 Subject: [PATCH] Add failing test for #553 --- .../openrewrite/kotlin/tree/FunctionTypeTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 + """ + ) + ); + } }