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
[interp] Reduce computation under calc_section mutex
[mono-project.git]
/
mcs
/
tests
/
test-null-operator-19.cs
blob
16a536e9a3a7a0e70dfc475e91ed4ea5a00c6f7e
1
using
System
;
2
3
class
C
4
{
5
public
S Acceleration { get; set;}
6
}
7
8
struct
S
9
{
10
public double
X
;
11
}
12
13
class
X
14
{
15
public static int
Main
()
16
{
17
var
c
=
new
C
();
18
19
var
g
=
c
?.
Acceleration
.
X
;
20
Console
.
WriteLine
(
g
.
GetType
());
21
if
(
g
.
GetType
() !=
typeof
(
double
))
22
return
1
;
23
24
return
0
;
25
}
26
}