projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[corlib] Make Marshal.BufferToBSTR(Array, int) non-public again (#5670)
[mono.git]
/
mcs
/
errors
/
cs0458-15.cs
1
// CS0458: The result of the expression is always `null' of type `short?'
2
// Line: 24
3
// Compiler options: -warnaserror -warn:2
4
5
struct S
6
{
7
public static short operator + (S s, S i)
8
{
9
return 2;
10
}
11
12
public static int? operator + (S? s, int? i)
13
{
14
return 2;
15
}
16
17
}
18
19
class C
20
{
21
public static void Main ()
22
{
23
S? s = new S ();
24
var x = s + (S?)null;
25
}
26
}