[Mono-bugs] [Bug 422507] New: Generic iterator methods getting invalid type information
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Sep 3 07:54:38 EDT 2008
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: mono-bugs at lists.ximian.com
ReportedBy: lluis at novell.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list