repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
retag
[mcs.git]
/
errors
/
cs0266-4.cs
blob
fc40fddccfc2307730b611e1548e159b4cea50f0
1
// cs0266.cs: 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
}