c#9 Type targeted new expressions

Answered

Is support for type targeted new expressions coming soon?

Eg in R# 2020.2.4, the following code:

    MyType myInstance = new(); 

gives the error

    Cannot convert the initializer type '???' to target type 'MyNamespace.MyType'

Thanks

1 comment
Comment actions Permalink

Hello, Alan Davis! Please try installing the latest [R# 2020.3 EAP10](https://www.jetbrains.com/resharper/nextversion/#section=windows).

Also this week we are going to release 2020.3. Please let me know if you have any questions.

0

Please sign in to leave a comment.