summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1720-2.cs
blob: f63acd04f0c4645fe1eeea58a463a12b23e15c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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();
    }
}