2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs1502-7.cs
blobe25806807af1bad9cb785201adfa123857f99d16
1 // cs1502-7.cs: The best overloaded method match for `TestCase.TestS(ref object)' has some invalid arguments
2 // Line: 21
4 using System;
6 public struct Struct {
7 public int x, y, z;
10 public class TestCase {
12 public static void Main() {
14 Struct s = new Struct();
16 s.x = 1;
17 s.y = 2;
19 System.Console.WriteLine("{0} {1} {2}", s.x, s.y, s.z);
21 TestS(ref s);
24 public static void TestS(ref object ino) {
25 System.Console.WriteLine("{0}", ((Struct)(ino)).x);