projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* Form.cs: Make the fix for #80775 windows-only (fixes #81957).
[mono.git]
/
mcs
/
errors
/
cs1651.cs
1
// cs1651.cs: Fields of static readonly field `B.a' cannot be passed ref or out (except in a static constructor)
2
// Line: 23
3
4
class B
5
{
6
public struct A
7
{
8
public int val;
9
}
10
11
public static readonly A a = new A ();
12
}
13
14
class C
15
{
16
static void f (ref int i)
17
{
18
i = 44;
19
}
20
21
static void Main ()
22
{
23
f (ref B.a.val);
24
}
25
}