Skip to content

Update FindCallGraphTest to expect void for Kotlin Unit return type#43

Merged
timtebeek merged 1 commit into
mainfrom
tim/fix-companion-object-unit-to-void
Apr 16, 2026
Merged

Update FindCallGraphTest to expect void for Kotlin Unit return type#43
timtebeek merged 1 commit into
mainfrom
tim/fix-companion-object-unit-to-void

Conversation

@timtebeek

Copy link
Copy Markdown
Member

Summary

  • CI failure on the scheduled run: FindCallGraphTest.companionObject() asserts returnType=kotlin.Unit, but the parser now produces void.
  • Non-nullable kotlin.Unit return types are intentionally mapped to JVM void as of rewrite 8.79.4 (Align Kotlin type model with Java parser output rewrite#7364 — "Align Kotlin type model with Java parser output"), so the test expectation is stale.

Test plan

  • ./gradlew test --tests FindCallGraphTest.companionObject passes against rewrite 8.79.4+

Non-nullable kotlin.Unit return types now map to JVM void as of
rewrite 8.79.4 (openrewrite/rewrite#7364). Update the call graph
assertion to match.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Apr 16, 2026
@timtebeek timtebeek merged commit 61f0420 into main Apr 16, 2026
1 check passed
@timtebeek timtebeek deleted the tim/fix-companion-object-unit-to-void branch April 16, 2026 17:31
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant