Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA 2463: suggestion errs with nullables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Dec 16 2022 :  08:59:37 AM  Show Profile  Reply with Quote
I think the picture says it all.



feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Dec 16 2022 :  11:46:04 AM  Show Profile  Reply with Quote
Interestingly enough, when using C# 8, both of the following lines compile quite happily:

Dictionary<string, string?> newNotNullable = new Dictionary<string, string>();
Dictionary<string, string?> newIsNullable = new Dictionary<string, string?>();


but yes, VA should be suggesting the actual type, not a version of it:

case=148939

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000