Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0266-4.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fc40fddccfc2307730b611e1548e159b4cea50f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// cs0266.cs: Cannot implicitly convert type `Bar' to `X'. An explicit conversion exists (are you missing a cast?)
// Line: 18

public enum Bar
{
	ABar
}

class X
{
	public static explicit operator X (Bar the_bar)
	{
		return new X();
	}
	
	public static void Main ()
	{
		X x = Bar.ABar;
	}
}