Add enum TrustDirection.cs
[mono.git] / mcs / errors / cs0118-8.cs
index 4a9d790531d730da7a40acbe7360ea497e3c7ca6..3497e1ae4a33b06e27590d36e8159470429061b0 100644 (file)
@@ -1,11 +1,17 @@
-// cs0118-8.cs:
-// Line: 9
+// CS0118: `A.Foo(string)' is a `method group' but a `type' was expected
+// Line: 15
 
-class D {
-       static int a = 1;
-       static int b = 2;
-       static int Main ()
+public class A
+{
+       public static void Foo (string Setting)
        {
-               return (a << 1) ~ (b);  
        }
 }
+
+class Example
+{
+       public void Main(string[] args)
+       {
+               A a = new A.Foo ("test");  
+       }
+}
\ No newline at end of file