Debugger: Fix missing NOP in empty 'when' header (KT-29189)

This commit is contained in:
Yan Zhulanow
2019-03-05 19:43:46 +03:00
parent ba0989801a
commit 77c2a5c87c
7 changed files with 47 additions and 3 deletions
@@ -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)
);