You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
parent
d8f8abd549
commit
e2950ec768
36
mcs/tests/test-discards-01.cs
Normal file
36
mcs/tests/test-discards-01.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user