Fix all CreateInstance overloads for void
[mcs.git] / errors / gcs0184-3.cs
bloba27c85fab796cb4fd09f85189a0768c8fb06e7c3
1 // CS0184: The given expression is never of the provided (`int') type
2 // Line: 10
3 // Compiler options: -warnaserror -warn:1
5 class X
7 public void Foo<T> () where T : class
9 T t = default (T);
10 if (t is int) {