mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
new overload resolution: most specific check on invalid class exceptions fixed
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class Test {
|
||||
interface I { Object in<EOLError descr="';' expected"></EOLError>
|
||||
<error descr="Invalid method declaration; return type required">voke</error>(); }
|
||||
interface IStr { String foo(); }
|
||||
|
||||
public static void call(IStr str) {}
|
||||
public static void call(I i) { }
|
||||
|
||||
public static void main(String[] args) {
|
||||
call<error descr="Ambiguous method call: both 'Test.call(IStr)' and 'Test.call(I)' match">(()-> null)</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user