[Mono-bugs] [Bug 23151] New - problems with "using Foo = Bar;" syntax in mcs

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
8 Apr 2002 03:32:16 -0000

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 cdaly@locosoft.org.


--- shadow/23151	Sun Apr  7 23:32:16 2002
+++ shadow/23151.tmp.19587	Sun Apr  7 23:32:16 2002
@@ -0,0 +1,54 @@
+Bug#: 23151
+Product: Mono/MCS
+Version: unspecified
+OS Details: Mandrake 8.2
+Status: NEW   
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: cdaly@locosoft.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: problems with "using Foo = Bar;" syntax in mcs
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+mcs compiler bug with using alias syntax.
+Note: I'm having trouble with the "version" field above.
+This was observed in the 0.10 release
+Steps to reproduce the problem:
+- try to compile the source code below
+// begin test file
+using Alias = System.Type;
+public class Test
+  public Test()
+  {
+    Alias t = this.GetType();
+    System.Console.WriteLine(t.FullName);
+  }
+// end test file
+Actual Results:
+compile error:
+error CS246: Cannot find type `Alias'
+Expected Results:
+it should compile with no errors
+How often does this happen? 
+every time
+Additional Information:
+csc compiles this code.  I think this code should compile
+based on my reading of the C# language spec.