blob: 2b32d09f6c4c1ababbd3d9760ebf8fa045366aa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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;
}
}
|