Files
linux-packaging-mono/mcs/tests/test-639.cs

13 lines
229 B
C#
Raw Normal View History

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;
}
}