[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git] / mcs / tests / dtest-004.cs
blob1b911447d47bffabc0fd2e9b51988287347c4c8e
1 // internal dynamic conversion tests
3 class G<T>
8 class C
10 public static dynamic Create ()
12 return 1;
15 static void M<T> ()
17 dynamic d = default (T);
18 var v = default (dynamic);
21 public static int Main ()
23 var d = Create ();
24 d.ToString ();
26 M<int> ();
27 M<C> ();
29 G<object> v1 = new G<dynamic>();
30 G<dynamic> v2 = new G<object>();
31 return 0;