no enclosing instance of type inside super/this call

This commit is contained in:
Anna Kozlova
2013-06-14 13:30:15 +04:00
parent 7b9eca0450
commit 292524fd95
2 changed files with 4 additions and 2 deletions
@@ -189,7 +189,7 @@ class InnerClassRefInsideAnonymous {
Child(Foo foo) {
super(new Foo() {
public String toString() {
AFoo afoo = null;
AFoo afoo = new <error descr="Cannot reference 'AFoo' before supertype constructor has been called">AFoo</error>();
return super.toString();
}
});