Inspectopedia
 
2024.3

Unnecessary type argument

Info
New
Last modified: 03 December 2024

Reports function calls with type arguments that can be automatically inferred. Such type arguments are redundant and can be safely omitted.

Use the 'Remove explicit type arguments' quick-fix to clean up the code.

Examples:

After the quick-fix is applied: