bugDotGNU Portable.NET - Bugs: bug #10311, Possible misinterpretation of...

 
 

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

bug #10311: Possible misinterpretation of 'protected internal'

Submitted by:  Dominique Canazzi <canazzi>
Submitted on:  Tue 07 Sep 2004 12:53:01 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 08 Sep 2004 09:30:44 AM UTC, comment #1:

Fix committed to CVS on 8th Sept 2004.

Gopal.V <t3rmin4t0r>
Project Administrator
Tue 07 Sep 2004 12:53:01 PM UTC, original submission:

cscc seems to interpret this combination as "protected AND internal". ECMA says "internal, OR ELSE protected".

Example:

public class A
{
protected internal void foo () {}
}
public class B : A
{
private class X
{
private A owner;
public void SomeMethod ()
{
B myOwner = owner as B;
myOwner.foo ();
}
}
}

does not compile when A and B defined in different assemblies.

Dominique Canazzi <canazzi>

 

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 08 Sep 2004 09:30:44 AM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1