repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git]
/
mcs
/
errors
/
cs0458-15.cs
blob
1174b4160703a1c08264a7c4a42539a96842a159
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
}