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
Fix DateTime.Now and CurrentTimeToUtc during DST transition time (#4172)
[mono-project.git]
/
mcs
/
tests
/
test-primary-ctor-01.cs
blob
5b2eeaed8d5b7d595b28f855d1c20d4aeb9ac98b
1
// Compiler options: -langversion:experimental
2
class
Simple
(
int
arg
)
3
{
4
int
Property { get; }
=
arg
;
5
6
public static int
Main
()
7
{
8
var
c
=
new
Simple
(
4
);
9
if
(
c
.
Property
!=
4
)
10
return
1
;
11
12
var
s
=
new
S
(
4.3
m
);
13
if
(
s
.
Property
!=
4.3
m
)
14
return
1
;
15
16
return
0
;
17
}
18
}
19
20
struct
S
(
decimal
arg
)
21
{
22
internal decimal
Property { get; }
=
arg
;
23
}