Imported Upstream version 3.12.0

Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
This commit is contained in:
Jo Shields
2015-01-13 10:44:36 +00:00
parent 8b9b85e7f5
commit 181b81b4a4
659 changed files with 12743 additions and 16300 deletions

View File

@ -1,3 +1,5 @@
// Compiler options: -langversion:experimental
using System;
struct S (int x)
@ -14,6 +16,21 @@ struct S (int x)
}
}
struct S2 (int arg)
{
public readonly int v = arg;
}
struct S3 (string s = "arg")
{
public readonly string V2 = s;
public S3 (int i, string s = "arg2")
: this (s)
{
}
}
class X
{
public static int Main ()
@ -24,6 +41,15 @@ class X
if (new S ('x').y != 1)
return 2;
if (new S2 (2).v != 2)
return 3;
if (new S3 ("x").V2 != "x")
return 4;
if (new S3 (0).V2 != "arg2")
return 5;
return 0;
}
}