svn path=/trunk/mcs/; revision=159138
-// internal dynamic<->object conversion tests
+// internal dynamic conversion tests
+
+class G<T>
+{
+}
+
class C
{
return 1;
}
- public static void Main ()
+ static void M<T> ()
+ {
+ dynamic d = default (T);
+ var v = default (dynamic);
+ }
+
+ public static int Main ()
{
var d = Create ();
d.ToString ();
+
+ M<int> ();
+ M<C> ();
+
+ G<object> v1 = new G<dynamic>();
+ G<dynamic> v2 = new G<object>();
+ return 0;
}
}
--- /dev/null
+// Compiler options: -t:library
+
+using System;
+
+namespace System.Runtime.CompilerServices
+{
+ [AttributeUsage (AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)]
+ public sealed class ExtensionAttribute : Attribute {
+ }
+}
\ No newline at end of file
--- /dev/null
+// Compiler options: -r:System.Core.dll -r:gtest-exmethod-35-lib.dll
+
+using System;
+
+static class A
+{
+ public static void Test (this int v)
+ {
+ }
+
+ public static void Main ()
+ {
+ }
+}
\ No newline at end of file