summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0117-3.cs
blob: 63e2027bcffb162f14583c6b06192ec789f67298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// CS0117: `Color' does not contain a definition for `Transparent'
// Line:

using System;

struct Color
{
}

static class ExtensionMethods
{
	public static Color Transparent (this Color c)
	{
		return new Color ();
	}
}

class MainClass
{
	public static void Main ()
	{
		var c = Color.Transparent ();
	}
}