return commit after merge
'Fixed UnsupportedOperationException when a namespace is used in place of an expression.'
This commit is contained in:
@@ -218,6 +218,9 @@ public class CallExpressionResolver {
|
||||
JetType type = getVariableType(nameExpression, receiver, callOperationNode, context.replaceBindingTrace(traceForVariable), result);
|
||||
if (result[0]) {
|
||||
traceForVariable.commit();
|
||||
if (type instanceof NamespaceType && !context.namespacesAllowed) {
|
||||
type = null;
|
||||
}
|
||||
return JetTypeInfo.create(type, context.dataFlowInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user