overload resolution: static methods from super interfaces should be skipped in favor to instance methods (IDEA-216009)

GitOrigin-RevId: f172ea91498434cd956010df286dc418334a83b9
This commit is contained in:
Anna Kozlova
2019-06-13 22:25:23 +02:00
committed by intellij-monorepo-bot
parent f0fc3a6588
commit 667d922108
3 changed files with 21 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
interface ToStringBug {
static void toString(String s) {}
class Inner implements ToStringBug {
{
toString<error descr="'toString()' in 'java.lang.Object' cannot be applied to '(java.lang.String)'">( "x")</error>;
}
}
}