linux-packaging-mono/mcs/tests/gtest-initialize-07.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

20 lines
236 B
C#

public class A
{
public string Name { get; set; }
public bool Matches (string s)
{
return Name == s;
}
}
class M
{
public static int Main ()
{
if (!new A () { Name = "Foo" }.Matches ("Foo"))
return 1;
return 0;
}
}