projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bump corert
[mono.git]
/
mcs
/
errors
/
cs0019-55.cs
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
}