Highlight "types differ in mutability" errors if a variable type is not manually declared #4705
Labels
feature
subsystem::code insight
General label for issues related to code understanding: highlighting, completion, annotation, etc.
Environment
Problem description
Passing an immutable reference to a function expecting a mutable is not highlighted as an error if the variable type is not explicitly declared.
Steps to reproduce
Standalone example:
Build fails with
map
type is reported asHashMap<?, ?>
, no error is highlightedIf I do specify the type
The text was updated successfully, but these errors were encountered: