Ruby.rbs
Incorrect type argument variance
Error
New
Last modified: 03 December 2024Reports 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:
module Enumerable[unchecked out A]
end
class Example[in A]
# Contravariant type variable 'A' of class 'Example' used as a covariant argument
include Enumerable[A]
end
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
RbsIncorrectTypeArgumentVariance
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Ruby, 243.23135 |
Thanks for your feedback!
Was this page helpful?