I have this code
MyClass instance = new MyClass();
VS Intellisense shows:
'new' expression can be simplified
and upon selecting that action, it changes the code to:
MyClass instance = new();
but then build fails with error code CS8181:
'new' cannot be used with tuple type. Use a tuple literal expression instead.
I am unable to understand this error message as MyClass is not related to tuple type. It's a plain class with int, string and list properties and no inheritance. Also, why should an Intellisense suggested action cause an error.
I've reported this issue to VS Dev Community. Link
Thanks in advance for your help.