Bug 311031 (MONO23151) - problems with "using Foo = Bar;" syntax in mcs
Summary: problems with "using Foo = Bar;" syntax in mcs
Status: RESOLVED MOVED
Alias: MONO23151
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: 2002-04-08 06:32 UTC by Chris Daly
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

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 17:56:08 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"