summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1720-3.cs
blob: e4243a78c28947f04aee0bf0e7331b55126aac69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// CS1720: Expression will always cause a `System.NullReferenceException'
// Line: 11
// Compiler options: -warnaserror -warn:1

using System;

public class Tester 
{
    public static void Foo ()
    {
        Console.WriteLine(default(Tester).ToString());
    }
}