[Mono-list] bug: Generic inheritance, compiler error

lytico lytico at users.sourceforge.net
Thu Nov 26 07:36:46 EST 2009


hi all,
some months ago I submitted this bug:
https://bugzilla.novell.com/show_bug.cgi?id=501052

It is about a compiler error. The following code fails to compile:

using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;

namespace Limada.MonoTests.Generics {
    public class MultiDictionary<K, V, TDictionary>
        where TDictionary : IDictionary<K, ICollection<V>>
    { }

    [TestFixture]
    public class Test {
        [Test]
        public  void Main() {
            // this fails:
            var c = new MultiDictionary<int, int, Dictionary<int,
ICollection<int>>>();
    }

}

It seems not resolved until now, at least in the 2.4.x-versions.

Has anyone time to care about? Or is it resolved in 2.6?


thanks,
lytico

http://limada.sourceforge.net
-- 
View this message in context: http://old.nabble.com/bug%3A-Generic-inheritance%2C-compiler-error-tp26394339p26394339.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list