Incorrect type argument count
Reports references to generic types with the incorrect number of type arguments. Usage of a generic type without passing the correct number of type arguments is an error.
A quick fix is available to correct the number of type arguments passed.
Example:
class Example[A]
end
# Too many type arguments provided
type example = Example[untyped, untyped]
After the quick fix:
class Example[A]
end
type example = Example[untyped]
Inspection Details | |
---|---|
Available in: | Qodana for Ruby 2023.3, RubyMine 2023.3 |
Plugin: | Ruby, 233.SNAPSHOT |
Last modified: 13 July 2023