linux-packaging-mono/mcs/tests/test-discards-01.cs
Xamarin Public Jenkins (auto-signing) e2950ec768 Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
2018-01-29 19:03:06 +00:00

36 lines
378 B
C#

using System;
class X
{
public static void Main ()
{
string s = null;
_ = 1;
{
char _ = '4';
}
_ = TestValue ();
_ = _ = s;
byte k1;
var s1 = (k1, _) = (1, s);
Func<object> l1 = () => _ = (_, _) = (1, s);
TryGetValue (out _);
}
static bool TryGetValue (out int arg)
{
arg = 3;
return true;
}
static int TestValue ()
{
return 4;
}
}