mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
inference errors: make applicability error thread safe so multiple threads can perform overload resolution of parent method calls independently, save presentable error when substitutor cached only
This commit is contained in:
+4
-2
@@ -7,8 +7,10 @@ public class Sample {
|
||||
<B> B bar(G<B> gb) {return null;}
|
||||
|
||||
void f(G1 g1) {
|
||||
G<String> l11 = bar<error descr="'bar(Sample.G<B>)' in 'Sample' cannot be applied to '(Sample.G1)'">(g1)</error>;
|
||||
String l1 = bar<error descr="'bar(Sample.G<B>)' in 'Sample' cannot be applied to '(Sample.G1)'">(g1)</error>;
|
||||
G<String> l11 = <error descr="Incompatible types. Required G<String> but 'bar' was inferred to B:
|
||||
Incompatible types: Object is not convertible to G<String>">bar(g1);</error>
|
||||
String l1 = <error descr="Incompatible types. Required String but 'bar' was inferred to B:
|
||||
Incompatible types: Object is not convertible to String">bar(g1);</error>
|
||||
Object o = bar(g1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user