blob: a27c85fab796cb4fd09f85189a0768c8fb06e7c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// CS0184: The given expression is never of the provided (`int') type
// Line: 10
// Compiler options: -warnaserror -warn:1
class X
{
public void Foo<T> () where T : class
{
T t = default (T);
if (t is int) {
}
}
}
|