Fix for KT-5410 J2K: someObject + "someString" should be converted to someObject.toString() + "someString"

Otherwise `+` operator will not resolve
This commit is contained in:
Simon Ogorodnik
2016-10-14 17:35:01 +03:00
parent 0cebcc9f3c
commit 1069257e95
5 changed files with 87 additions and 0 deletions
@@ -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"
}
}
}