Merge remote branch 'upstream/master'
[mono.git] / mcs / errors / cs0184-10.cs
1 // CS0184: The given expression is never of the provided (`int') type
2 // Line: 10
3 // Compiler options: -warnaserror -warn:1
4
5 class X
6 {
7         public void Foo<T> () where T : class
8         {
9                 T t = default (T);
10                 if (t is int) {
11                 }
12         }
13 }