Support 'when' with subject variable in psi2ir

This commit is contained in:
Dmitry Petrov
2018-06-08 15:31:28 +03:00
parent d6894091a9
commit bf083314dd
4 changed files with 83 additions and 6 deletions
@@ -1127,6 +1127,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
runTest("compiler/testData/ir/irText/expressions/whenReturn.kt");
}
@TestMetadata("whenWithSubjectVariable.kt")
public void testWhenWithSubjectVariable() throws Exception {
runTest("compiler/testData/ir/irText/expressions/whenWithSubjectVariable.kt");
}
@TestMetadata("whileDoWhile.kt")
public void testWhileDoWhile() throws Exception {
runTest("compiler/testData/ir/irText/expressions/whileDoWhile.kt");