Bugzilla – Bug 324515
[GMCS] CS0308 must be reported when non-generic type is used with type arguments
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by gert.driesen@pandora.be 2007-06-10 05:37:18 MST ---- When a non-generic type is used with type arguments, then MS reports error CS0308 while we report CS0246. To reproduce, compile the following code snippet: class Program { static NamingContext<int> Lookup () { return null; } static void Main () { Lookup (); } } class NamingContext { } Expected result: error CS0308: The non-generic type 'NamingContext' cannot be used with type arguments Actual result: error CS0246: The type or namespace name `NamingContext`1' could not be found. Are you missing a using directive or an assembly reference? ---- Additional Comments From marek.safar@seznam.cz 2007-06-12 11:26:43 MST ---- Fixed in SVN.