Bug 318416 (MONO75429) - [GMCS] "Missing method" for where-constraints
Summary: [GMCS] "Missing method" for where-constraints
Status: RESOLVED FIXED
Alias: MONO75429
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Blocker
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-30 21:21 UTC by Michal Moskal
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

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:23:41 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".