bugDotGNU Portable.NET - Bugs: bug #6999, C# using-alias-directive broken...

 
 

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

bug #6999: C# using-alias-directive broken for namespaces

Submitter:  Tony Garnock-Jones <surazal>
Submitted:  Sun 28 Dec 2003 12:12:48 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Sun 18 Apr 2004 03:35:04 PM UTC, comment #3: 

Fix committed to CVS on 18th April 2004 .

The without using bug is bug #8225 and will be fixed seperately

Gopal.V <t3rmin4t0r>
Group administrator
Sun 28 Dec 2003 01:14:48 AM UTC, comment #2: 

Yet another refinement (...-3.tar.gz) - checking what happens with aliases of classes containing inner classes. Turns out to be the same problem. (Although I'm not sure whether this is supposed to work or not according to the ECMA spec, and I don't have mono or MS.NET handy here at home to test this third set of test cases.)

Tony Garnock-Jones <surazal>
Sun 28 Dec 2003 01:08:13 AM UTC, comment #1: 

Here's a new test case that pins it down even further (using-directive-2.tar.gz). Referring to S.Inner.S2 gives a different set of messages than referring to S.Service. The only nontrivial difference between the classes is that one is inside another namespace layer.

Tony Garnock-Jones <surazal>
Sun 28 Dec 2003 12:12:48 AM UTC, original submission:  

Code such as the following (where Shared.Service is a class) will not compile (I've attached a small test case that helps narrow down the problem), whereas it does compile on MS.NET and Mono:

using S = Shared;
public class Main {
    public static void Main() {
S.Service s = new S.Service();
s.Hi();
    }
}

Tony Garnock-Jones <surazal>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #932:  using-directive-3.tar.gz added by surazal (679B - application/x-gzip - Further refinement, checking aliases of classes containing inner classes)
file #931:  using-directive-2.tar.gz added by surazal (626B - application/x-gzip - Refined test cases)
file #930:  using-directive.tar.gz added by surazal (561B - application/x-gzip - Test case with three examples, two working, one broken)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-04-22 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2003-12-28 surazal Attached File- Added using-directive-3.tar.gz, #912
2003-12-28 surazal Attached File- Added using-directive-2.tar.gz, #911
2003-12-28 surazal Attached File- Added using-directive.tar.gz, #910

Back to the top

Powered by Savane 3.13-0329.
Corresponding source code