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
**** Merged from MCS ****
[mono-project.git]
/
mcs
/
errors
/
cs0552.cs
blob
7fe395005deadf0caa5bfd29bb593ef8dfdffa98
1
// cs0552.cs: user-defined conversion to/from interface
2
// Line: 12
3
//
4
using
System
;
5
using
System
.
IO
;
6
7
//
8
//
9
// Implicit conversion to an interface is not permitted
10
//
11
class
NoIDispose
{
12
public static implicit operator
IDisposable
(
NoIDispose a
)
13
{
14
return
a
.
x
;
15
}
16
}
17