[mcs] C#7 out variable declaration
[mono.git] / mcs / errors / cs0111-4.cs
index 5f3f7a382a0dc3376ef001b33be20cc9ffb00ec6..906e6dff2dc9e201905d271a1d4a86d61982c6b3 100644 (file)
@@ -1,16 +1,17 @@
-// cs0111-4.cs: `ErrorClass.get_Blah(int)' is already defined. Rename this member or use different parameter types
-// Line: 8
+// CS0111: A member `C.Foo<U>(U)' is already defined. Rename this member or use different parameter types
+// Line : 12
 
-using System.Runtime.CompilerServices;
-class ErrorClass {
-       [IndexerName ("Blah")]
-       public int this [int a] {
-            get { return 1; }
+public class C
+{
+       void Foo (int i)
+       {
        }
-        
-        public void get_Blah (int b) {}
        
-        public static void Main ()
-        {
-        }
+       void Foo<T> (T i)
+       {
+       }
+       
+       void Foo<U> (U i)
+       {
+       }
 }