Bugzilla – Bug 311031
problems with "using Foo = Bar;" syntax in mcs
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by cdaly@locosoft.org 2002-04-07 23:32:16 MST ---- 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. ---- Additional Comments From lupus@ximian.com 2002-04-08 04:22:49 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO22667 *** ---- Additional Comments From ravi@ximian.com 2002-04-08 11:17:05 MST ---- Fixed in my local copy - commit coming sometime :-) Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>Mandrake 8.2</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"