[Mono-bugs] [Bug 414153] Compiler error when implementing interface with generic constraint
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Aug 2 15:04:57 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=414153
User mono at e-tobi.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=414153#c1
Tobias Grimm <mono at e-tobi.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mono at e-tobi.net
--- Comment #1 from Tobias Grimm <mono at e-tobi.net> 2008-08-02 13:04:56 MDT ---
The following patch seems to fix this problem:
--- generic.cs (Revision 109484)
+++ generic.cs (Arbeitskopie)
@@ -1044,7 +1044,7 @@
{
if (t == null)
return null;
- if (t.IsGenericParameter)
+ if (t.IsGenericParameter && dargs.Length > 0)
return dargs
[t.GenericParameterPosition];
if (t.IsGenericType) {
Type[] args = t.GetGenericArguments ();
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list