Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

54
mcs/tests/test-590.cs Normal file
View File

@@ -0,0 +1,54 @@
using System;
class X
{
public static int Main ()
{
X x = new X ();
return x.Do ("a", "b", "c");
}
string str = "start";
string Foo ()
{
return "s";
}
string Prop
{
get { return str; }
set { str = value; }
}
string this [int i]
{
get { return str; }
set { str = value; }
}
int Do (string a, string b, string c)
{
str += Foo ();
if (str != "starts")
return 1;
str += a + "," + b + "," + c;
if (str != "startsa,b,c")
return 2;
Prop += a;
if (str != "startsa,b,ca")
return 3;
Prop += a + "," + b + "," + c;
if (str != "startsa,b,caa,b,c")
return 4;
this [0] += a + "," + b + "," + c;
if (str != "startsa,b,caa,b,ca,b,c")
return 5;
return 0;
}
}