You've already forked linux-packaging-mono
Imported Upstream version 3.12.0
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user