https://bugzilla.novell.com/show_bug.cgi?id=422507
Summary: Generic iterator methods getting invalid type
information
Product: Mono: Compilers
Version: 2.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
Try this use case:
using System;
using System.Collections;
class App
{
public static void Main (string[] args)
{
foreach (object o in QueryEnumerable<string>())
Console.WriteLine (o);
}
public static IEnumerable QueryEnumerable<T> ()
{
Console.WriteLine ("Type: " + typeof(T));
yield break;
}
}
In this app the iterator always prints '0' as type.
This is a regression. Works fine in 1.9.1, fails on 2.0 and trunk.
--
Configure bugmail: https://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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs