Use correct lhs KotlinType & AsmType for is check generation

There were two problems:
  - For asm type `OBJECT_TYPE` was used, which can be wrong in case of
  inline classes, because it can be an underlying value of some inline class
  - For KotlinType, type from rhs was used
This commit is contained in:
Mikhail Zarechenskiy
2018-07-04 17:36:41 +03:00
parent 4f490ac264
commit 2939d9c8c6
7 changed files with 107 additions and 6 deletions
@@ -11018,6 +11018,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt");
}
@TestMetadata("typeChecksForInlineClasses.kt")
public void testTypeChecksForInlineClasses() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt");
}
@TestMetadata("UIntArraySortExample.kt")
public void testUIntArraySortExample() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt");