testdata for IDEA-106848

This commit is contained in:
Anna Kozlova
2015-09-03 18:40:02 +03:00
parent 0426946f75
commit 5f45a046ea
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import static java.util.Objects.toString;
class Foo {
String go() {
return toString<error descr="'toString()' in 'Foo' cannot be applied to '(java.lang.String)'">("foo")</error>;
}
public String toString() {
return super.toString();
}
public static void main(String[] args) {
System.out.println(new Foo().go());
}
}

View File

@@ -138,6 +138,10 @@ public class OverloadResolutionTest extends LightDaemonAnalyzerTestCase {
doTest();
}
public void testStaticImportOfObjectsToString() throws Exception {
doTest();
}
private void doTest() {
doTest(true);
}