[Mono-bugs] [Bug 81894][Nor] New - [GMCS] CS0305 instead of CS0246

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jun 18 07:49:50 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by marek.safar at seznam.cz.

http://bugzilla.ximian.com/show_bug.cgi?id=81894

--- shadow/81894	2007-06-18 07:49:50.000000000 -0400
+++ shadow/81894.tmp.27081	2007-06-18 07:49:50.000000000 -0400
@@ -0,0 +1,56 @@
+Bug#: 81894
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: marek.safar at seznam.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] CS0305 instead of CS0246
+
+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.


More information about the mono-bugs mailing list