Inspectopedia
 
2024.3

Conflicting type variable variance

Error
New
Last modified: 03 December 2024

Reports type variables whose variance (in, out, or unchecked) conflicts with another declaration. Type variables must match in variance between partial declarations of the same class or module, even if the type variables have different names.

Example: