Evaluate expression for variable of function type
#KT-10199 Fixed
This commit is contained in:
@@ -62,10 +62,14 @@ class FrameVisitor(context: EvaluationContextImpl) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val localVariable = if (isFunctionType(asmType))
|
if (isFunctionType(asmType)) {
|
||||||
findLocalVariableForLocalFun(name, asmType, checkType)
|
val variableForLocalFun = findLocalVariableForLocalFun(name, asmType, checkType)
|
||||||
else
|
if (variableForLocalFun != null) {
|
||||||
findLocalVariable(name, asmType, checkType)
|
return variableForLocalFun
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val localVariable = findLocalVariable(name, asmType, checkType)
|
||||||
|
|
||||||
if (localVariable != null) {
|
if (localVariable != null) {
|
||||||
return localVariable
|
return localVariable
|
||||||
|
|||||||
Reference in New Issue
Block a user