summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-initialize-07.cs
blob: f2e6f485fd023e172fce6a7b8514dac650cac006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
	}
}