cannot access private field

class Test2 : Test1
{
}

class Test1
{
Test2 parent = null;

bool CheckRootRoot()
{
if (parent.parent != null)
{
return true;
}
return false;
}
}




how many bugs needed to get a free licence... ;)



Attachment(s):
access.GIF
3 comments
Comment actions Permalink

I submitted this bug into the tracker (http://www.intellij.net/tracker/resharper/viewSCR?publicId=4321 ) and we'll probably fix it in a bugfix release. Thanks!

--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com "Develop with pleasure!"

0

Please sign in to leave a comment.