[mcs] C#7 throw expression
[mono.git] / mcs / errors / cs1061-18.cs
diff --git a/mcs/errors/cs1061-18.cs b/mcs/errors/cs1061-18.cs
new file mode 100644 (file)
index 0000000..1f201d5
--- /dev/null
@@ -0,0 +1,18 @@
+// CS1061: No overload for method `Call' takes `0' arguments
+// Line: 11
+
+using System;
+class Program
+{
+       static void Main ()
+       {
+               Action<dynamic, object> action = delegate { };
+               Foo (action).NoDynamicBinding ();
+       }
+       static T Foo<T>(Action<T, T> x)
+       {
+               throw new NotImplementedException ();
+       }
+}
\ No newline at end of file