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:
+1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user