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
use MOONLIGHT symbol
[mcs.git]
/
errors
/
gcs0019-15.cs
blob
18163fa1f0592b5895f73b3fa4d5dc962a3a3801
1
// CS0019: Operator `==' cannot be applied to operands of type `A' and `int?'
2
// Line: 22
3
4
class
A
5
{
6
public static bool operator
== (
A a
,
int
b
)
7
{
8
return false
;
9
}
10
11
public static bool operator
!= (
A a
,
int
b
)
12
{
13
return false
;
14
}
15
}
16
17
class
C
18
{
19
public static void
Main
()
20
{
21
A a
=
new
A
();
22
object
b
=
a
==
Id
;
23
}
24
25
static int
?
Id
{
26
get
{ return 1; }
27
}
28
}