Debugger: Fix missing NOP in empty 'when' header (KT-29189)
This commit is contained in:
@@ -4856,6 +4856,10 @@ The "returned" value of try expression with no finally is either the last expres
|
||||
KtProperty subjectVariable = expression.getSubjectVariable();
|
||||
KtExpression subjectExpression = expression.getSubjectExpression();
|
||||
|
||||
if (subjectVariable == null && subjectExpression == null) {
|
||||
v.nop();
|
||||
}
|
||||
|
||||
SwitchCodegen switchCodegen = switchCodegenProvider.buildAppropriateSwitchCodegenIfPossible(
|
||||
expression, isStatement, CodegenUtil.isExhaustive(bindingContext, expression, isStatement)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user