Imported Upstream version 5.10.0.69

Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-01-29 19:03:06 +00:00
parent d8f8abd549
commit e2950ec768
6283 changed files with 453847 additions and 91879 deletions

View File

@@ -1,3 +1,4 @@
// Compiler options: -langversion:latest
using System;
//
@@ -175,6 +176,11 @@ public class ConditionalParsing
var x = args ?.2f : -.2f;
}
void Test_23 (string args)
{
var x = args == null ? default : 1;
}
static void Helper<T> (T arg)
{
}

View File

@@ -15,6 +15,7 @@ gtest-etree-09.cs
test-269.cs
test-270.cs
test-399.cs
test-404.cs
test-704.cs
test-811.cs
test-async-17.cs

View File

@@ -2,20 +2,32 @@
class C
{
static void Main()
{
M (default, 1);
static void Main()
{
M (default, 1);
M2 (default);
M2 (null);
}
M2 (default);
M2 (null);
var res = Test (default);
}
static void M<T> (T x, T y)
{
}
static void M<T> (T x, T y)
{
}
static void M2 (params object[] x)
{
}
static byte[] Test (S<byte> x)
{
return null;
}
}
struct S<T>
{
static void M2 (params object[] x)
{
}
}

View 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;
}
}

View File

@@ -0,0 +1,19 @@
using System;
class TupleDeconstructionDeclaration
{
public static int Main ()
{
(string s, long l) = GetValues ();
(var vs, var vl) = GetValues ();
(object o, var vl2) = GetValues ();
(string ds, _) = GetValues ();
return 0;
}
static (string, long) GetValues ()
{
return ("a", 3);
}
}

View File

@@ -1 +1 @@
5adff6190605aca793479b15f0d101080c53ab9a
53b3539833656acb93be1ac56ce37dd74ae46aea