projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump NuGet.BuildTasks to get new updates and switch to `dev` branch (#5566)
[mono.git]
/
mcs
/
errors
/
cs1503-17.cs
diff --git
a/mcs/errors/cs1503-17.cs
b/mcs/errors/cs1503-17.cs
index 07da09dfe294ab20064ad5e679f396f7c2ec68d5..23921edc939676cea5a155564c638eef4b7728fe 100644
(file)
--- a/
mcs/errors/cs1503-17.cs
+++ b/
mcs/errors/cs1503-17.cs
@@
-1,15
+1,31
@@
-// CS1501: Argument `#1' cannot convert `ref string' expression to type `ref int'
-// Line: 8
-// Compiler options: -langversion:experimental
+// CS1503: Argument `#1' cannot convert `ref long' expression to type `ref int'
+// Line: 18
-class C
+using System;
+
+class X
{
{
- public static void Main ()
+ long field;
+
+ static void Main ()
{
{
- Foo (ref var x = "");
+ var x = new X ();
+ x.Run ();
}
}
-
static void Foo (ref int i
)
+
void Run (
)
{
{
+ Test (ref Prop);
+ }
+
+ static int Test (ref int y)
+ {
+ return y;
+ }
+
+ ref long Prop {
+ get {
+ return ref field;
+ }
}
}
-}
\ No newline at end of file
+}