I made a typo and Visual Studio didn’t mark it as an error:
void Method(Nullable<SpriteFont>? font = null) { }
font shows up as SpriteFont?? in output. What did I just do?
UPD: Sorry, everyone, I didn’t try co compile it, it just didn’t show up as an error until I did. Still, it’s weird that it looked as Type?? in output.
Furthermore SpriteFont is already nullable, so I was going to get an error anyway 🙁
I have tried it here, just now… and I could not reproduce what you sayd.
All of the following statements fail to compile:
Nullable<int>? a = 1;Nullable<Nullable<int>> b = 1;Nullable<int?> a = 1;void A(Nullable<Nullable<int>> a)void A(Nullable<int>? a)void A(Nullable<int?> a)Using Visual Studio 2012, C# 4 or 5 I think, .Net framework 4.5.