bugDotGNU Portable.NET - Bugs: bug #5806, Alias for Namespace is not handled...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #5806: Alias for Namespace is not handled as in MS .NET 1.0 or 1.1

Submitted by:  Klaus Treichel <ktreichel>
Submitted on:  Wed 08 Oct 2003 01:50:15 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 19 Apr 2004 01:31:29 PM UTC, comment #1:

Fixed in CVS on 19th April 2004

Gopal.V <t3rmin4t0r>
Project Administrator
Wed 08 Oct 2003 01:50:15 PM UTC, original submission:

It is not possible to use a namespace alias to overwrite the main namespace. That is needed if a namespace with the same name exists in the current or an other imported assambly.

Example:

using DotNet_System = System;

namespace TestCompile.System
{
class TestClass : DotNet_System.Object
{
static void Main(string[] args)
{
}
}
}

with pnet cscc the following errors occure:

Class1.cs:5: `DotNet_System' is not declared in the current scope
Class1.cs:6: invalid left operand to `.'
Class1.cs:6: invalid base type

With MS csc this example compiles without errors

Klaus Treichel <ktreichel>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 19 Apr 2004 02:19:58 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1