New test.
[mono.git] / mcs / errors / gcs1720-2.cs
1 // CS1720: Expression will always cause a `System.NullReferenceException'\r
2 // Line: 9\r
3 // Compiler options: -warnaserror -warn:1\r
4 \r
5 public class Tester \r
6 {\r
7     public static void GenericClass<T>(T t) where T : class \r
8     {\r
9         string s = default(T).ToString();\r
10     }\r
11 }