repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
[mono-project.git]
/
mcs
/
errors
/
cs0266-4.cs
blob
8ea5ff0cae48658cd85be23cc0d1c277d23523ad
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
}