[Mono-bugs] [Bug 78712][Nor] New - Wrong error given with poorly formed generic syntax

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jun 26 13:42:02 EDT 2006


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 abockover at novell.com.

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

--- shadow/78712	2006-06-26 13:42:02.000000000 -0400
+++ shadow/78712.tmp.13601	2006-06-26 13:42:02.000000000 -0400
@@ -0,0 +1,30 @@
+Bug#: 78712
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: abockover at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Wrong error given with poorly formed generic syntax
+
+When leaving out the generic on a variable, gmcs says the B type or
+namespace could not be found when in fact it should say something like "B
+type requires " (C# Error 0305, I think?)
+
+B b = new A<B>();
+
+--
+
+aaron at sledipus:~/Desktop$ gmcs cs0305-test.cs
+cs0305-test.cs(9,3): error CS0246: The type or namespace name `B' could not
+be found. Are you missing a using directive or an assembly reference?
+Compilation failed: 1 error(s), 0 warnings


More information about the mono-bugs mailing list