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