You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
17
mcs/tests/test-null-operator-21.cs
Normal file
17
mcs/tests/test-null-operator-21.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
class X
|
||||
{
|
||||
public object MyChildObject;
|
||||
}
|
||||
|
||||
interface ISomeInterface
|
||||
{
|
||||
}
|
||||
|
||||
class MainClass
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
X myObject = null;
|
||||
var x = (myObject?.MyChildObject is ISomeInterface);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user