KT-3574 Assertion error when using ?: in for range

#KT-3574 Fixed

Do not assert that resolvedCall is non-null, since getRangeAsBinaryCall can
return a BinaryCall that doesn't represent a range at all (as specified by the
comment in getRangeAsBinaryCall)
This commit is contained in:
Alexander Udalov
2013-06-19 18:46:58 +04:00
parent 3ff5acd69c
commit 8a14b62a23
3 changed files with 19 additions and 6 deletions
@@ -1436,6 +1436,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/controlStructures/kt3280.kt");
}
@TestMetadata("kt3574.kt")
public void testKt3574() throws Exception {
doTest("compiler/testData/codegen/box/controlStructures/kt3574.kt");
}
@TestMetadata("kt416.kt")
public void testKt416() throws Exception {
doTest("compiler/testData/codegen/box/controlStructures/kt416.kt");