projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3678 from mono/seq-read
[mono.git]
/
mcs
/
errors
/
cs0019-61.cs
1
// CS0019: Operator `==' cannot be applied to operands of type `S?' and `int'
2
// Line: 15
3
4
struct S
5
{
6
public static bool operator != (S s, int a) { return true; }
7
public static bool operator == (S s, int a) { return false; }
8
}
9
10
public class C
11
{
12
public static void Main ()
13
{
14
S? s;
15
var b = s == 1;
16
}
17
}