Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
@@ -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;

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