Skip to content

Commit

Permalink
Add failing test for #553
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Jan 22, 2024
1 parent 5d4995d commit bca9284
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/java/org/openrewrite/kotlin/tree/FunctionTypeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
"""
)
);
}
}

0 comments on commit bca9284

Please sign in to comment.