提交 127118cf 编写于 作者: C CyrusNajmabadi

Update GenerateConstructor tests.

上级 a9fbf5fc
......@@ -1283,9 +1283,9 @@ void M()
class Delta
{
private bool v;
private string v1;
private int v2;
private bool v;
public Delta(string v1, int v2)
{
......@@ -1447,9 +1447,9 @@ void M()
class Delta
{
private bool v;
private string v1;
private int v2;
private bool v;
public Delta(string v1, int v2)
{
......@@ -1666,17 +1666,17 @@ void Main()
struct Apartment
{
private string v;
private int v1;
private string v;
public Apartment(string v) : this()
public Apartment(int v1)
{
this.v = v;
this.v1 = v1;
}
public Apartment(int v1)
public Apartment(string v) : this()
{
this.v1 = v1;
this.v = v;
}
}");
}
......@@ -1765,13 +1765,13 @@ class D
private int u;
private D v;
public D(D v)
public D(int u)
{
this.v = v;
}
public D(int u)
public D(D v)
{
this.v = v;
}
}");
}
......@@ -1871,9 +1871,9 @@ class D
[AttributeUsage(AttributeTargets.Class)]
class MyAttribute : Attribute
{
private string topic;
private bool v1;
private int v2;
private string topic;
public MyAttribute(bool v1, int v2, string topic)
{
......@@ -1968,14 +1968,14 @@ class MyAttribute : Attribute
private int v;
private bool v1;
public MyAttribute(bool v1)
public MyAttribute(int v)
{
this.v1 = v1;
this.v = v;
}
public MyAttribute(int v)
public MyAttribute(bool v1)
{
this.v = v;
this.v1 = v1;
}
}
......@@ -2014,22 +2014,22 @@ class D
[AttributeUsage(AttributeTargets.Class)]
class MyAttrAttribute : Attribute
{
private int v;
private bool v1;
private int v2;
private int v;
private bool v3;
public MyAttrAttribute(int v, bool v3)
{
this.v = v;
this.v3 = v3;
}
public MyAttrAttribute(bool v1, int v2)
{
this.v1 = v1;
this.v2 = v2;
}
public MyAttrAttribute(int v, bool v3)
{
this.v = v;
this.v3 = v3;
}
}
[MyAttrAttribute(1, true)]
......@@ -2069,9 +2069,8 @@ enum A
[AttributeUsage(AttributeTargets.Class)]
class MyAttrAttribute : Attribute
{
private A a1;
private int[] v1;
private string v10;
private A a1;
private bool v2;
private byte v3;
private char v4;
......@@ -2080,6 +2079,7 @@ class MyAttrAttribute : Attribute
private long v7;
private double v8;
private float v9;
private string v10;
public MyAttrAttribute(int[] v1, A a1, bool v2, byte v3, char v4, short v5, int v6, long v7, double v8, float v9, string v10)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册