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
/
cs0029-13.cs
blob
9d705b290e63fc2c0c8610380748a76765066098
1
// CS0029: Cannot implicitly convert type `int' to `A'
2
// Line: 14
3
4
class
A
5
{
6
public static implicit operator int
(
A x
)
7
{
8
return
1
;
9
}
10
11
public static void
Main
()
12
{
13
var
a
=
new
A
();
14
a
++;
15
}
16
}