Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Parsers tests for lambda modifiers #71

Merged
merged 2 commits into from
Apr 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -210,4 +211,32 @@ suspend fun example (
)
);
}

@Issue("https://github.com/openrewrite/rewrite-kotlin/issues/70")
@Test
@ExpectedToFail
void crossinline() {
rewriteRun(
kotlin(
"""
inline fun example (
crossinline block : ( ) -> Unit
) : Unit = Unit
""")
);
}

@Issue("https://github.com/openrewrite/rewrite-kotlin/issues/70")
@Test
@ExpectedToFail
void noinline() {
rewriteRun(
kotlin(
"""
inline fun example (
noinline block : ( ) -> Unit
) : Unit = Unit
""")
);
}
}