Skip to content

Kotlin: Fix missing kotlin to java property mapping#9280

Merged
tamasvajk merged 2 commits intogithub:mainfrom
tamasvajk:kotlin-map-kj-properties
May 24, 2022
Merged

Kotlin: Fix missing kotlin to java property mapping#9280
tamasvajk merged 2 commits intogithub:mainfrom
tamasvajk:kotlin-map-kj-properties

Conversation

@tamasvajk
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions bot added the Java label May 24, 2022
@tamasvajk tamasvajk force-pushed the kotlin-map-kj-properties branch from bf0a431 to 5a54218 Compare May 24, 2022 08:14
@tamasvajk tamasvajk changed the title Kotlin: Handle accessors in equivalent java function lookup Kotlin: Fix missing kotlin to java property mapping May 24, 2022
@@ -1 +1,3 @@
fun test(m: Map<Int, Int>) = m.getOrDefault(1, 2)

fun test2(s: String) = s.length
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename the test, since it no longer tests specifically map methods

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is specific to mapping to java methods. :-)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah ok, that's now how I intended the name but I'm happy for it to start meaning that :)

@tamasvajk tamasvajk marked this pull request as ready for review May 24, 2022 11:15
@tamasvajk tamasvajk requested review from a team as code owners May 24, 2022 11:15
@tamasvajk tamasvajk merged commit 730f54a into github:main May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants