-// 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)
+ {
+ }
}