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
[corlib] Add a special method for XI so the linker does not always have to generate it.
[mono-project.git]
/
mcs
/
errors
/
cs0266-19.cs
blob
edf9e1c8192e29804b2e5a95230cd8a9a63b5ea0
1
// CS0266: Cannot implicitly convert type `A' to `B'. An explicit conversion exists (are you missing a cast?)
2
// Line: 17
3
4
class
A
5
{
6
public static
A
operator
-- (
A x
)
7
{
8
return new
A
();
9
}
10
}
11
12
class
B
:
A
13
{
14
static void
Main
()
15
{
16
B b
=
new
B
();
17
--
b
;
18
}
19
}