summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1955.cs
blob: ace2ddce385f5e4aa9617f2e63db6997ab1e7b1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS1955: The member `Y.x' cannot be used as method or delegate
// Line: 17

using System;

class Y
{
	public int x { get { return 1; } }
}

class X
{
	static int Main ()
	{
		Y y = new Y ();

		y.x ();
		return 0;
	}
}