Fix for KT-5410 J2K: someObject + "someString" should be converted to someObject.toString() + "someString"
Otherwise `+` operator will not resolve
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
class Test {
|
||||
class B {
|
||||
class C
|
||||
|
||||
fun c(): C {
|
||||
return C()
|
||||
}
|
||||
}
|
||||
|
||||
fun a() {
|
||||
val b = B()
|
||||
println(b.toString() + "")
|
||||
val a = 1.toString() + "0"
|
||||
println(b.c().toString() + "")
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
@JvmStatic fun main(args: Array<String>) {
|
||||
val p = Test().toString() + "123"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user