bugDotGNU Portable.NET - Bugs: bug #2765, CSCC - getting mixed up with...

 
 

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

bug #2765: CSCC - getting mixed up with namspaces

Submitted by:  James Michael DuPont <mdupont>
Submitted on:  Sun 09 Mar 2003 11:24:33 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 19 Mar 2003 06:43:19 AM UTC, comment #1:

The following error is reported by csc:

mdupont.cs(24,20): error CS0234: The type or namespace
name 'testclass' does not exist in the class or namespace
'Test2.Test' (are you missing an assembly reference?)

Cscc is behaving correctly.

Rhys Weatherley <rweather>
Project Administrator
Sun 09 Mar 2003 11:24:33 PM UTC, original submission:

it seems that you cannot defined Test as a toplevelnamespace
and as a sub namespace. cscc gets all confused.
//test3.cs:24: `testclass' is not a member of the namespace `Test2.Test'
//test3.cs:24: invalid type specification `Test.testclass'

---------------------------
using Test;
namespace Test
{
public class testclass {
}
}

// No problem here
namespace Test3{
namespace Test4{
public abstract class testclass3 {

testclass a;

public extern Test.testclass get_getClass( );
}
}
}

// problem here
namespace Test2{
namespace Test{
public abstract class testclass2 {
public extern Test.testclass get_getClass( );
//test3.cs:24: `testclass' is not a member of the namespace `Test2.Test'
//test3.cs:24: invalid type specification `Test.testclass'
}
}
}

James Michael DuPont <mdupont>

 

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
Wed 19 Mar 2003 06:43:19 AM UTCrweatherStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1