Bug 324568 (MONO81894) - [GMCS] CS0305 instead of CS0246
Summary: [GMCS] CS0305 instead of CS0246
Status: RESOLVED FIXED
Alias: MONO81894
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-18 14:49 UTC by Marek Safar
Modified: 2010-04-27 09:50 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:41:52 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".

Comment 2 Marek Safar 2010-04-27 09:50:41 UTC
Fixed in trunk.