update readme (#21797)
[mono-project.git] / mcs / tests / dtest-056.cs
blob2fb1266a0870d9e80dff190fed83ddd4a2d15b47
1 using System;
3 public class C
5 public D D { get; private set; }
6 public string Value { get; private set; }
7 public Foo Foo { get; set; }
9 public int Test ()
11 dynamic d = new C ();
12 return D.Foo (d.Value);
15 public static int Test2 (dynamic d)
17 return Foo.Method(d);
20 public static int Main ()
22 var c = new C ();
23 if (c.Test () != 1)
24 return 1;
26 if (C.Test2 ("s") != 1)
27 return 2;
29 return 0;
33 public struct D
35 public int Foo (string value)
37 return 1;
41 public class Foo
43 public static int Method (string s)
45 return 1;