a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
11 lines
267 B
C#
11 lines
267 B
C#
// CS1720: Expression will always cause a `System.NullReferenceException'
|
|
// Line: 9
|
|
// Compiler options: -warnaserror -warn:1
|
|
|
|
public class Tester
|
|
{
|
|
public static void GenericClass<T>(T t) where T : class
|
|
{
|
|
string s = default(T).ToString();
|
|
}
|
|
} |