[Mono-bugs] [Bug 746449] New: Cannot compile templates

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 10 16:21:46 UTC 2012


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

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


           Summary: Cannot compile templates
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.10.x
          Platform: Other
        OS/Version: Debian Woody
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: michael.miller at suse.com
        ReportedBy: kyevstig at mfisoft.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20100101
Firefox/10.0

Hi!

I'm using OS - Debian Wheezy.

On last update I got a mono 2.10.5 ( before I had mono 2.6.7).

I try to compile my project on this version of mono and got errors with using
templates.

I have class with templates in class library. But when I use it in another
assebly, compiler cannot understand that I use same type:


/root/1111/ConsoleApplication1/ConsoleApplication1/Program.cs(15,44): error
CS1502: The best overloaded method match for
           
`ConsoleApplication1.Collections.Array<string>.AddRange(ConsoleApplication1.Collections.Array<T>)'
has some invalid arguments
           
/root/1111/ConsoleApplication1/ClassLibrary1/bin/Release/ClassLibrary1.dll
(Location of the symbol related to previous error)
           
/root/1111/ConsoleApplication1/ConsoleApplication1/Program.cs(15,44): error
CS1503: Argument `#1' cannot convert
            `ConsoleApplication1.Collections.Array<string>' expression to type
`ConsoleApplication1.Collections.Array<T>'

with mono 2.6.5 and on windows all is working fine.

Reproducible: Always

Steps to Reproduce:
1. try to compile my test project.
2.
3.


Expected Results:  
test project.

-- 
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