KT-33 Provide method descriptors for both getter and setter when accessing collections via []

INDEXED_LVALUE_GET stored on read as well
This commit is contained in:
Andrey Breslav
2011-11-02 13:13:13 +03:00
parent d5266ddedd
commit 4ad64b618c
@@ -758,6 +758,7 @@ public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor {
"get",
receiver);
if (functionDescriptor != null) {
context.trace.record(INDEXED_LVALUE_GET, expression, functionDescriptor);
return DataFlowUtils.checkType(functionDescriptor.getReturnType(), expression, contextWithExpectedType);
}
}