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
[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git]
/
mcs
/
tests
/
test-null-operator-24.cs
blob
77ce5d955fbf12b000d4c86c8dc91ebc8e0454b0
1
using
System
;
2
3
class
X
4
{
5
public int
Field { get; set; }
6
7
public int
F3 { get; set; }
8
}
9
10
class
App
11
{
12
static void
Main
()
13
{
14
string
s
=
null
;
15
var
x
=
new
X
{
16
Field
=
s
?.
ToString
() ==
null
?
1
:
2
17
}.
F3
;
18
}
19
}