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
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
cs0030-7.cs
blob
0410ad806d741fd9b4326713b3e6d5152c700bd2
1
// CS0030: Cannot convert type `S' to `E'
2
// Line: 10
3
4
enum
E
5
{
6
V
7
}
8
9
struct
S
10
{
11
public static explicit operator int
(
S val
)
12
{
13
return
1
;
14
}
15
}
16
17
class
C
18
{
19
E
Foo
()
20
{
21
S s
=
new
S
();
22
return
(
E
)
s
;
23
}
24
25
public static void
Main
()
26
{
27
}
28
}