Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

13 lines
229 B
C#

class Foo {
bool got;
string s {
get { got = true; return ""; }
set { if (!got || value != "A1B2") throw new System.Exception (); }
}
public static void Main ()
{
(new Foo ()).s += "A" + 1 + "B" + 2;
}
}