projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* default.build: Fix relative path to key. Avoid use of ugly foreach
[mono.git]
/
mcs
/
errors
/
cs0266-4.cs
1
// cs0266.cs: Cannot implicitly convert type `Bar' to `X'. An explicit conversion exists (are you missing a cast?)
\r
2
// Line: 18
\r
3
\r
4
public enum Bar
\r
5
{
\r
6
ABar
\r
7
}
\r
8
\r
9
class X
\r
10
{
\r
11
public static explicit operator X (Bar the_bar)
\r
12
{
\r
13
return new X();
\r
14
}
\r
15
\r
16
public static void Main ()
\r
17
{
\r
18
X x = Bar.ABar;
\r
19
}
\r
20
}
\r