Bugzilla – Bug 319476
[GMCS] Compiler/runtime assertion while compiling code
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by miguel@ximian.com 2005-11-07 16:34:01 MST ---- The following program makes the runtime produce an assert: public class Set<Element> { protected readonly Node[] sub; public Set () { } public struct Locator { public delegate void Replace (Node node); public Locator (Replace put) { } } public class Node : Set<Element> { } protected Locator locate (Element x) { Set<Element> parent = this; return new Locator( new Locator.Replace(delegate (Node n) { parent.sub[0] = n; })); } } static class SetTest { static void Main (string[] args) { } } This produces: ** ERROR **: file metadata.c: line 2935 (mono_type_size): assertion failed: (!gclass->generic_class.inst->is_open) aborting... Aborted ---- Additional Comments From miguel@ximian.com 2005-11-07 23:27:08 MST ---- *** https://bugzilla.novell.com/show_bug.cgi?id=MONO76601 has been marked as a duplicate of this bug. *** Unknown operating system unknown. Setting to default OS "Other".