IntelliJ bug

Remi Forax forax at univ-mlv.fr
Fri Nov 6 10:11:32 UTC 2020


Hi all, hi Tagir,
This snippet of code is legal, javac has no trouble with it but IntelliJ rejects it.

Collection<? extends E> coll = ...
if (coll instanceof List<? extends E> list) {
  ...
}

cheers,
Rémi


More information about the amber-dev mailing list