mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
inference: erasure functional type for raw substitutors (IDEA-154759)
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
|
||||
interface Processor<T> {
|
||||
|
||||
void process(T t);
|
||||
}
|
||||
|
||||
class MySymbol<T extends String> {
|
||||
|
||||
void processSameSymbols(Processor<MySymbol> processor) {}
|
||||
|
||||
T locateDefinition() {
|
||||
return (T) "";
|
||||
}
|
||||
|
||||
void findUsages(MySymbol s) {
|
||||
s.processSameSymbols(symbol -> {
|
||||
String definition = symbol.<error descr="Cannot resolve method 'locateDefinition()'">locateDefinition</error>();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user