a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
13 lines
229 B
C#
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;
|
|
}
|
|
}
|