Skip to content

Comments

Kotlin missing type information#6393

Draft
Laurens-W wants to merge 7 commits intomainfrom
kotlin-missing-types
Draft

Kotlin missing type information#6393
Laurens-W wants to merge 7 commits intomainfrom
kotlin-missing-types

Conversation

@Laurens-W
Copy link
Contributor

@Laurens-W Laurens-W commented Dec 8, 2025

What's changed?

Added a test for missing Kotlin Gradle DSL

What's your motivation?

Running into missing type info with Kotlin projects

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

Add tests for missing Kotlin Gradle DSL
@Laurens-W Laurens-W self-assigned this Dec 8, 2025
@Laurens-W Laurens-W added the bug Something isn't working label Dec 8, 2025
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Dec 8, 2025
@timtebeek
Copy link
Member

The K2 upgrade just merged in PR #6766 — it brings significantly improved type attribution (e.g., generic method invocation types now resolve to concrete types like kotlin.String instead of Generic{E}). Worth rebasing on main to check if the type information gaps this test captures are now resolved by K2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working kotlin

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants