Bugzilla – Bug 321806
[GMCS] Where clause on generic delegate
Last modified: 2007-09-15 21:24:23 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>