mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-06 09:36:56 +07:00
14 lines
300 B
Java
14 lines
300 B
Java
// "Replace 'ts' with existing pattern variable 'i1'" "true"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
interface T {}
|
|
|
|
HashSet<T> test(Iterable<T> i) {
|
|
if (i instanceof Collection<T> i1) {
|
|
Collection<T> t<caret>s = (Collection<T>) i;
|
|
return new HashSet<>(ts);
|
|
}
|
|
return null;
|
|
}
|
|
} |