- Sonarlint 5.9.0.3144
Have a method with a generic return type
<T> T get(HGHandle handle);
And a method calling it:
Slot slot = graph.get(slotHandle);
which triggers S6212 but changing the type to var won’t compile since now the type is resolved to Object and we can’t call any other Slot specific method afterwards, w/o maybe casting, which surely defeats the purpose of the rule.