Bug 319402 (MONO76561) - [GMCS] object.c line 1288 - runtime cannot resolve proper override
Summary: [GMCS] object.c line 1288 - runtime cannot resolve proper override
Status: RESOLVED FIXED
Alias: MONO76561
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-26 08:16 UTC by Atsushi Enomoto
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:36:22 UTC


---- Reported by atsushi@ximian.com 2005-10-26 01:16:56 MST ----

The example code below results in runtime internal error "object.c line
1288" (it is mono_object_get_virtual_method())

using System;

class Base
{
        public virtual void Foo ()
        {
                Console.WriteLine ("Foo");
        }
        public virtual void Foo<T> ()
        {
                Console.WriteLine ("Foo<>");
        }
}

class Derived : Base
{
        public override void Foo<T> ()
        {
                Console.WriteLine ("Derived.Foo<>");
        }
}

class Driver
{
        public static void Main ()
        {
                new Derived ().Foo<int> ();
        }
}


How often does this happen? 

consistently.



---- Additional Comments From atsushi@ximian.com 2005-10-26 01:24:27 MST ----

Another bug for Martin :-)

I tried csc-compiled binary and it resulted in the same, and
gmcs-compiled binary works fine on .NET 2.0 (beta2).



---- Additional Comments From martin@ximian.com 2005-11-23 14:11:56 MST ----

Works for me.


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