projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Report error for name collision between property and generic method with same name...
[mono.git]
/
mcs
/
errors
/
cs0111-4.cs
diff --git
a/mcs/errors/cs0111-4.cs
b/mcs/errors/cs0111-4.cs
index 73d76b980f32c4b7bb8d90857515232312f887ab..906e6dff2dc9e201905d271a1d4a86d61982c6b3 100644
(file)
--- a/
mcs/errors/cs0111-4.cs
+++ b/
mcs/errors/cs0111-4.cs
@@
-1,16
+1,17
@@
-//
cs0111.cs: Class 'ErrorClass' already defines a member called 'get_Blah' with the same
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)
+ {
+ }
}
}