Inspectopedia Help

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.


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

By default bundled with:

Qodana for Ruby 2024.1, RubyMine 2024.1,

Can be installed with plugin:

Ruby, 241.SNAPSHOT

Last modified: 29 April 2024