projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] Initial by ref returns and variables support
[mono.git]
/
mcs
/
errors
/
cs1503-17.cs
1
// CS1503: Argument `#1' cannot convert `ref long' expression to type `ref int'
2
// Line: 18
3
4
using System;
5
6
class X
7
{
8
long field;
9
10
static void Main ()
11
{
12
var x = new X ();
13
x.Run ();
14
}
15
16
void Run ()
17
{
18
Test (ref Prop);
19
}
20
21
static int Test (ref int y)
22
{
23
return y;
24
}
25
26
ref long Prop {
27
get {
28
return ref field;
29
}
30
}
31
}