projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git]
/
mcs
/
errors
/
cs0036.cs
1
// CS0036: An out parameter cannot have the `In' attribute
2
// Line: 10
3
4
using System;
5
using System.Runtime.InteropServices;
6
7
class ErrorCS0036 {
8
int i;
9
10
static void SetInteger ([In] out int i) {
11
i = 10;
12
}
13
14
public static void Main () {
15
int x;
16
SetInteger (out x);
17
Console.WriteLine ("The compiler should say: ErrorCS0036: {0}", x);
18
}
19
}
20