a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
208 B
C#
18 lines
208 B
C#
// CS0184: The given expression is never of the provided (`Y') type
|
|
// Line: 10
|
|
// Compiler options: -warnaserror -warn:1
|
|
|
|
class Y
|
|
{
|
|
}
|
|
|
|
class X
|
|
{
|
|
public void Foo ()
|
|
{
|
|
X x = null;
|
|
if (x is Y) {
|
|
}
|
|
}
|
|
}
|