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,22 @@
public class Test {
public static class B {
public static class C {
}
public C c() {
return new C();
}
}
public void a() {
B b = new B();
System.out.println(b + "");
String a = 1 + "0";
System.out.println(b.c() + "");
}
public static void main(String[] args) {
String p = new Test() + "123";
}
}