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

https://bugzilla.novell.com/show_bug.cgi?id=678625#c0


           Summary: Generics compile failure producing CS0314 in the
                    Castle project
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.10.x
          Platform: i686
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


Created an attachment (id=418660)
 --> (http://bugzilla.novell.com/attachment.cgi?id=418660)
File to show gmcs wrongly giving error CS0314

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12) Gecko/20100101
Firefox/4.0b12

The attached file (from http://www.castleproject.org/) fails to compile, with
the steps below.

Using the same command line with csc.exe from Visual Studio 2008 works fine.



Reproducible: Always

Steps to Reproduce:
1. run gmcs  -target:library -out:test.dll PriorityBehavior.cs (this file is
attached)
2. see error
3. dmcs and mcs fail in the same way
Actual Results:  
PriorityBehavior.cs(62,71): error CS0314: The type `T' cannot be used as type
parameter `T' in the generic type or method
`Castle.Components.DictionaryAdapter.PriorityBehaviorExtensions.<Prioritize>c__AnonStorey0<T>'.
There is no boxing or type parameter conversion from `T' to
`Castle.Components.DictionaryAdapter.IDictionaryBehavior'
PriorityBehavior.cs(50,38): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings


Expected Results:  
Compile ok

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to