Created
January 14, 2021 19:54
-
-
Save TessenR/a4b5a41b231cf869b9dd24499f74f626 to your computer and use it in GitHub Desktop.
Spiler alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compile with C# 8 | |
class C | |
{ | |
void M() | |
{ | |
// in C# 8 you'll get a warning here but neither T? nor [AllowNull] will be allowed | |
void M<T>(T t = default) { } // CS8601 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment