Bugzilla – Bug 324568
[GMCS] CS0305 instead of CS0246
Last modified: 2010-04-27 09:50:41 UTC
---- Reported by marek.safar@seznam.cz 2007-06-18 07:49:50 MST ---- Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: Steps to reproduce the problem: 1. using System.Collections.Generic; public class X { static void Main () { object t = typeof (Stack<,>); } } Actual Results: ?.cs(17,44): error CS0246: The type or namespace name `Stack`2' could not be found. Are you missing a using directive or an assembly reference? Expected Results: ?.cs(17,22): error CS0305: Using the generic type 'System.Collections.Generic.Stack<T>' requires '1' type arguments How often does this happen? 100% Additional Information: It is quite tricky to implement today and it will probably require refactoring of type/namespace resolving code but it is worth doing. Unknown operating system unknown. Setting to default OS "Other".
Fixed in trunk.