Bugzilla – Bug 318416
[GMCS] "Missing method" for where-constraints
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by malekith@pld-linux.org 2005-06-30 14:21:35 MST ---- The following program when compiled with gmcs and run with mono svn produces: ** (foo.exe:4495): WARNING **: Missing method GetId in assembly /home/users/malekith/nemerle/ncc/testsuite/foo.exe token 6000001 Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object in <0x00000> <unknown method> in <0x00027> X:Main () in <0x00026> X:Main () while it should run OK. --------------------------- interface IMember { int GetId (); } interface IMethod : IMember { } class C1 : IMethod { public int GetId () { return 42; } } class X { static void foo<a> (a e ) where a : IMember { e.GetId (); } public static void Main () { foo<IMethod> (new C1 ()); } } -------------------------------- ---- Additional Comments From malekith@pld-linux.org 2005-06-30 14:22:10 MST ---- Forgot about priority, it's the current blocker for us. ---- Additional Comments From martin@ximian.com 2005-07-01 13:34:47 MST ---- Runtime issue. ---- Additional Comments From malekith@pld-linux.org 2005-07-01 13:59:17 MST ---- Should I mark runtime generics issues with something else than [GMCS]? ---- Additional Comments From martin@ximian.com 2005-07-01 14:32:32 MST ---- No, no - that's perfectly fine - just a comment for myself :-) ---- Additional Comments From martin@ximian.com 2005-07-01 14:34:15 MST ---- Fixed in SVN; added gtest-182.cs. ---- Additional Comments From martin@ximian.com 2005-07-02 09:11:30 MST ---- *** https://bugzilla.novell.com/show_bug.cgi?id=MONO75071 has been marked as a duplicate of this bug. *** Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>amd64 pld linux</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other".