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-readonly-02.cs
blob
231b8cd8fda09aff546b49e36d33e4563417e295
1
// Compiler options: -langversion:latest
2
using
System
;
3
4
public delegate ref readonly int
D
(
int
x
);
5
6
class
X
7
{
8
public static void
Main
()
9
{
10
11
}
12
13
Guid g
;
14
15
ref readonly
Guid
TestMethod
()
16
{
17
return ref
g
;
18
}
19
20
ref readonly
Guid TestProp
{
21
get
{
22
ref readonly var
rg
=
ref
g
;
23
return ref
rg
;
24
}
25
}
26
27
}