~do not accept self nested classes in class declaration if they inherit nested classes from superclass (IDEA-55510)

This commit is contained in:
Anna Kozlova
2013-06-04 14:18:46 +04:00
parent 42ece72f79
commit 7982d35821
3 changed files with 42 additions and 2 deletions
@@ -0,0 +1,14 @@
abstract class IdeaBugTest<M extends IdeaBugTest.Mapping>
{
static class Mapping {}
}
class BugTestSub extends IdeaBugTest<<error descr="SubMapping is not accessible in current context">BugTestSub.SubMapping</error>>
{
public abstract static class SubMapping extends Mapping {}
}
class BugTestSub1 extends IdeaBugTest<BugTestSub1.SubMapping>
{
public abstract static class SubMapping extends IdeaBugTest.Mapping {} //fqn here
}