Quantcast
Channel: Kotlin methods accepting inline classes as parameters - how access from Java? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by sanya5791 for Kotlin methods accepting inline classes as parameters...

Please, manually disable Kotlin names mangling with @JvmName@JvmName("something") fun something(email: Email)See docs for more details

View Article



Answer by Todd for Kotlin methods accepting inline classes as parameters -...

According to the KEEP that is used to discuss and plan inline classes, this is not currently possible (writing as of 1.3.11):We'll compile function compute(UInt) to compile-<hash>(Int), where...

View Article

Kotlin methods accepting inline classes as parameters - how access from Java?

Let's say I have:inline class Email(value: String)andfun something(email: Email)now if I want to call something() from Java I can't. Because any method that is accepting an inline class as a parameter...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images