Inspectopedia
 
2024.3

Incorrect type argument variance

Error
New
Last modified: 03 December 2024

Reports type arguments used in an inheritance statement (a superclass clause, self-type, or an inclusion call) which have incorrect variances. Type arguments passed to an inheritance statement must match in variance with the declaring type variable.

Example: