projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5010 from Unity-Technologies/boehm-gc-alloc-fixed-sre
[mono.git]
/
mcs
/
errors
/
cs0019-60.cs
1
// CS0019: Operator `>' cannot be applied to operands of type `S' and `S?'
2
// Line: 9
3
4
public class Test
5
{
6
public static void Main ()
7
{
8
S a = new S ();
9
S? b = null;
10
string res = a > b;
11
}
12
}
13
14
struct S
15
{
16
public static string operator > (S a, S b)
17
{
18
return ">";
19
}
20
21
public static string operator < (S a, S b)
22
{
23
return "<";
24
}
25
}