[Mono-bugs] [Bug 616809] Object type returned is incorrect
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jun 23 19:47:18 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=616809
http://bugzilla.novell.com/show_bug.cgi?id=616809#c1
Zoltan Varga <vargaz at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vargaz at gmail.com
Component|misc |C#
Product|Mono: Runtime |Mono: Compilers
--- Comment #1 from Zoltan Varga <vargaz at gmail.com> 2010-06-23 23:47:17 UTC ---
This looks like a gmcs bug.
Testcase which compiles:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
using System;
using TestGeneric = testCase.GenericClass<double>;
public class testCase
{
public class GenericClass<T>
{
}
public class AbstractClass1
{
private Type m_type;
public AbstractClass1(Type objectType)
{
m_type = objectType;
Console.WriteLine("passed in type: " + objectType.FullName);
}
public Type Type
{
get { return m_type; }
}
}
public class AbstractClass2 : AbstractClass1
{
public AbstractClass2()
: base(typeof(TestGeneric))
{
}
}
public static void Main () {
{
var testClass = new AbstractClass2();
//this fails in mono
Console.WriteLine (testClass.Type == typeof(GenericClass<double>));
}
}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
AbstractClass2:.ctor contains:
ldtoken testCase/GenericClass`1
while it should contain:
ldtoken class testCase/GenericClass`1<float64>
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list