Files
kotlin-fork/nj2k/testData/copyPaste/ConversionInCorrectContext.expected.kt
T
Ilya Kirillov d0f0b9e355 New J2K: do not allow field and method declarations to be internal
For internal members new names are generated,
So, references to them from Java will be broken
2019-10-12 12:50:32 +03:00

4 lines
172 B
Kotlin
Vendored

fun foo(p: Dependency): Double {
return p.getInt().toDouble() // explicit conversion to Double must be added on conversion (if type Dependency) is correctly resolved
}