Get rid of FIELD_IDENTIFIER at syntax level, two errors dropped, a set of tests fixed / deleted #KT-9539 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-10-20 13:55:37 +03:00
parent 8ea0501a30
commit d6988ad69e
97 changed files with 177 additions and 792 deletions
@@ -2007,9 +2007,7 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
}
}
boolean directToField =
(expression.getReferencedNameElementType() == KtTokens.FIELD_IDENTIFIER || isSyntheticField)
&& contextKind() != OwnerKind.DEFAULT_IMPLS;
boolean directToField = isSyntheticField && contextKind() != OwnerKind.DEFAULT_IMPLS;
KtSuperExpression superExpression =
resolvedCall == null ? null : CallResolverUtilKt.getSuperCallExpression(resolvedCall.getCall());
propertyDescriptor = context.accessibleDescriptor(propertyDescriptor, superExpression);