Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Maurer <benm@mono-cvs.ximian.com>2004-03-25 19:49:33 +0300
committerBen Maurer <benm@mono-cvs.ximian.com>2004-03-25 19:49:33 +0300
commit7cbe0d48464cb68148e70b377910a1c1bc029460 (patch)
tree9ed3eee675e1126a5876250aae2f063ade71c799 /mcs/errors/cs1510-2.cs
parentac79f2b708c6dbc3f0074dbffe3f747464ae6eb7 (diff)
2004-03-25 Ben Maurer <bmaurer@users.sourceforge.net>
* cs1510-2.cs: test for 56016. svn path=/trunk/mcs/; revision=24596
Diffstat (limited to 'mcs/errors/cs1510-2.cs')
-rw-r--r--mcs/errors/cs1510-2.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/errors/cs1510-2.cs b/mcs/errors/cs1510-2.cs
new file mode 100644
index 00000000000..888d5079d06
--- /dev/null
+++ b/mcs/errors/cs1510-2.cs
@@ -0,0 +1,16 @@
+// cs1510-2.cs: an lvalue is required for ref or out argument
+// Line: 14
+// this is bug #56016
+
+using System;
+
+class Test {
+ static void test(ref IConvertible i) {
+ }
+
+ static void Main() {
+ int i = 1;
+
+ test (ref (IConvertible) i);
+ }
+} \ No newline at end of file