projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[corlib] Use temp directory for assemblies in SaveTest.Save() (#5727)
[mono.git]
/
mcs
/
errors
/
cs0266-4.cs
1
// CS0266: Cannot implicitly convert type `Bar' to `X'. An explicit conversion exists (are you missing a cast?)
2
// Line: 18
3
4
public enum Bar
5
{
6
ABar
7
}
8
9
class X
10
{
11
public static explicit operator X (Bar the_bar)
12
{
13
return new X();
14
}
15
16
public static void Main ()
17
{
18
X x = Bar.ABar;
19
}
20
}