[Mono-bugs] [Bug 359617] gmcs confuses generic types when generating anonymous methods

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 25 12:30:59 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=359617

User twiest at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359617#c3


Thomas Wiest <twiest at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|RESOLVED                                        |VERIFIED




--- Comment #3 from Thomas Wiest <twiest at novell.com>  2008-07-25 10:30:58 MDT ---
I verified that this is fixed in Mono 2.0p1 on SLED 10 sp2 i586.


Output of Mono 1.9.1:
c220:~/bug359617 # gmcs tc.cs 
tc.cs(13,25): error CS0030: Cannot convert type `T' to `T'
tc.cs(13,25): The generic parameter `T' of
`Repro.AssertFoo<T>(System.Collections.Generic.IList<T>)' cannot be converted
to the generic parameter `T' of `Repro.<>c__CompilerGenerated0<T>' (in the
previous error)
Compilation failed: 1 error(s), 0 warnings
c220:~/bug359617 # 


Output of Mono 2.0p1:
c221:~/bug359617 # gmcs tc.cs 
tc.cs(13,36): warning CS0219: The variable `item' is assigned but its value is
never used
tc.cs(10,21): warning CS0169: The private method
`Repro.AssertFoo<T>(System.Collections.Generic.IList<T>)' is never used
Compilation succeeded - 2 warning(s)
c221:~/bug359617 #


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list