Bug 321806 (MONO79094) - [GMCS] Where clause on generic delegate
Summary: [GMCS] Where clause on generic delegate
Status: RESOLVED FIXED
Alias: MONO79094
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Linux
: P3 - Medium : Major
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-17 20:41 UTC by Michał Ziemski
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Minimalistic test case (168 bytes, text/plain)
2006-08-17 20:44 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:06:32 UTC


---- Reported by rook@roo.k.pl 2006-08-17 13:41:12 MST ----

Steps to reproduce the problem:
1. Compile the attached program
2. 
3. 

Actual Results:
Unhandled Exception: System.ArgumentNullException: null key
Parameter name: key
  at System.Collections.Hashtable.get_Item (System.Object key) [0x00000]
  at Mono.CSharp.AttributeTester.GetObsoleteAttribute (System.Type type) 
[0x00000]
  at Mono.CSharp.Expression.ResolveAsTypeTerminal (IResolveContext ec, 
Boolean silent) [0x00000]
  at Mono.CSharp.TypeArguments.Resolve (IResolveContext ec) [0x00000]
  at Mono.CSharp.ConstructedType.DoResolveType (IResolveContext ec) 
[0x00000]
  at Mono.CSharp.ConstructedType.ResolveConstructedType (IResolveContext 
ec) [0x00000]
  at Mono.CSharp.ConstructedType.DoResolveAsTypeStep (IResolveContext 
ec) [0x00000]
  at Mono.CSharp.TypeExpr.ResolveAsTypeStep (IResolveContext ec, Boolean 
silent) [0x00000]
  at Mono.CSharp.SimpleName.ResolveAsTypeStep (IResolveContext ec, 
Boolean silent) [0x00000]
  at Mono.CSharp.Constraints.Resolve (IResolveContext ec) [0x00000]
  at Mono.CSharp.TypeParameter.Resolve (Mono.CSharp.DeclSpace ds) [0x00000]
  at Mono.CSharp.Delegate.DefineType () [0x00000]
  at Mono.CSharp.TypeContainer.DefineNestedTypes () [0x00000]
  at Mono.CSharp.TypeContainer.DefineType () [0x00000]
  at Mono.CSharp.Class.DefineType () [0x00000]
  at Mono.CSharp.RootContext.ResolveTree () [0x00000]
  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]

Expected Results:
Compilation Successful :)

How often does this happen? 
Always



---- Additional Comments From rook@roo.k.pl 2006-08-17 13:44:02 MST ----

Created an attachment (id=170266)
Minimalistic test case




---- Additional Comments From dignor_sign@yahoo.es 2006-08-27 21:42:27 MST ----



The problem seems to be in the order types are "defined" for a generic 
delegate. The code there is quite different for generic classes. I
used the code in "class.cs" for fixing "delegate.cs" and now it works
well,  don't know if it works "really well".  I will try to submit a
patch soon



---- Additional Comments From miguel@ximian.com 2006-10-07 11:46:05 MST ----

Did your patch work out?



---- Additional Comments From martin@ximian.com 2006-10-09 09:40:11 MST ----

*** https://bugzilla.novell.com/show_bug.cgi?id=MONO79317 has been marked as a duplicate of this bug. ***



---- Additional Comments From martin@ximian.com 2006-10-09 09:40:29 MST ----

Fixed in SVN.



---- Additional Comments From martin@ximian.com 2006-10-09 09:41:20 MST ----

Added gtest-292.cs

Imported an attachment (id=170266)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>FC4 GMCS 1.1.16.1</cf_op_sys_details>