Bug 318323 (MONO75330) - [GMCS] assert in metadata
Summary: [GMCS] assert in metadata
Status: RESOLVED FIXED
Alias: MONO75330
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-20 22:44 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:22:00 UTC


---- Reported by malekith@pld-linux.org 2005-06-20 15:44:58 MST ----

Description of Problem:

Please compile and try to run the following code:

------------------------------
class lis<a> {}

abstract class fn <a,b,r> {
  public abstract r apply (a x,b y);
}

class fn1<a> : fn <lis<a>,lis<a>,lis<a>>
{
  public override lis<a> apply (lis<a> x,lis<a> y)
  {
    return M.RevAppend (x,y);
  }
}

class M {
    public static b FoldLeft<a, b> (a x, b acc, fn<a, b, b> f)
    {
        return f.apply (x, acc);
    }

    public static lis<a> RevAppend<a> (lis <a> x , lis <a> y)  {
      return x;
    }

    public static lis <lis <a>> Concat<a> (lis <lis <a>> l)
    {
      return FoldLeft<lis<lis<a>>, lis<lis<a>>> (l, new lis<lis<a>> (), new
fn1<lis<a>> ());
    }

        public static void Main ()
        {
          M.Concat (new lis<lis<string>> ());
        }
}
-------------------

Actual Results:
** ERROR **: file metadata.c: line 1807
(mono_metadata_parse_generic_param): assertion failed: (generic_container
&& !generic_container->is_method)
aborting...
zsh: 5535 abort      ~/mono-svn/bin/mono ./foo.exe

Expected Results:
clear run.


Additional Information:
mono SVN trunk.



---- Additional Comments From martin@ximian.com 2005-06-22 10:51:01 MST ----

Fixed in SVN.


Unknown operating system unknown. Setting to default OS "Other".