projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #102 from konrad-kruczynski/fix_bug_635971
[mono.git]
/
mcs
/
errors
/
cs0030-7.cs
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
}