You've already forked linux-packaging-mono
Imported Upstream version 4.2.1.36
Former-commit-id: fb75898888a02f4d3a74cf0a5b841681bc4c7fa8
This commit is contained in:
committed by
Jo Shields
parent
9668de7cb8
commit
dd547c45d4
20
mcs/tests/test-null-operator-18.cs
Normal file
20
mcs/tests/test-null-operator-18.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
static class MainClass
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
TestBug();
|
||||
}
|
||||
|
||||
public static void TestBug()
|
||||
{
|
||||
int? value = null;
|
||||
value?.Test();
|
||||
}
|
||||
|
||||
public static void Test(this int value)
|
||||
{
|
||||
Console.WriteLine("Not null");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user