Fix problems with overlong directory names: phase #1
[mono.git] / mcs / errors / cs1502-7.cs
1 // cs1502-7.cs: The best overloaded method match for `TestCase.TestS(ref object)' has some invalid arguments
2 // Line: 21
3
4 using System;
5
6 public struct Struct {
7         public int x, y, z;
8 }
9
10 public class TestCase {
11         
12         public static void Main() {
13                 
14                 Struct s = new Struct();
15                 
16                 s.x = 1;
17                 s.y = 2;
18                 
19                 System.Console.WriteLine("{0} {1} {2}", s.x, s.y, s.z);
20                 
21                 TestS(ref s);
22         }       
23         
24         public static void TestS(ref object ino) {
25                 System.Console.WriteLine("{0}", ((Struct)(ino)).x);
26         }
27         
28 }