[Mono-bugs] [Bug 492265] New: Generics example fails to compile due to bug parsing constraints.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Apr 4 12:00:19 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=492265
Summary: Generics example fails to compile due to bug parsing
constraints.
Classification: Mono
Product: Mono: Compilers
Version: 2.4.x
Platform: x86-64
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: jmichels at bluefintrading.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=284131)
--> (http://bugzilla.novell.com/attachment.cgi?id=284131)
Example code
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.7;
NET CLR 3.5; ffco7) Gecko/2009021910 Firefox/3.0.7
The compiler is generating an error for valid code. I am attaching example code
to reproduce the problem.
I am seeing the following error.
[Task:File=/home/jmichels/projects/GenericsBugProof/Main.cs, Line=11,
Column=36, Type=Error, Priority=Normal, Description=The type
`GenericsBugProof.MainClass.Item<GenericsBugProof.MainClass.TypeFamily>' must
be convertible to
`GenericsBugProof.MainClass.Item<GenericsBugProof.MainClass.Item<GenericsBugProof.MainClass.TypeFamily>>'
in order to use it as parameter `T' in the generic type or method
`GenericsBugProof.MainClass.Collection<TF>.Find<T>()'(CS0309)]
Reproducible: Always
Steps to Reproduce:
1. Compile example code.
2. See compiler error.
3. Profit
Actual Results:
Unexpected compiler error.
Expected Results:
No compiler errors
--
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