Skip to content

Instantly share code, notes, and snippets.

@TessenR
Created January 14, 2021 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TessenR/a4b5a41b231cf869b9dd24499f74f626 to your computer and use it in GitHub Desktop.
Save TessenR/a4b5a41b231cf869b9dd24499f74f626 to your computer and use it in GitHub Desktop.
Spiler alert
// 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