Coerce last value of delegated expression for inline classes

Note that this commit doesn't fix case when some inline class over
 `Any` is returned from a lambda, it'll be fixed further as part of the
 #KT-27586

 #KT-27737 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-10-22 03:52:10 +03:00
parent a97867ccb8
commit 79159947a5
7 changed files with 83 additions and 1 deletions
@@ -11135,6 +11135,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt");
}
@TestMetadata("delegatedPropertyOfInlineClassType.kt")
public void testDelegatedPropertyOfInlineClassType() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt");
}
@TestMetadata("kt27070.kt")
public void testKt27070() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt");
@@ -12180,6 +12180,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt");
}
@TestMetadata("delegatedPropertyOfInlineClassType.kt")
public void testDelegatedPropertyOfInlineClassType() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatedPropertyOfInlineClassType.kt");
}
@TestMetadata("kt27070.kt")
public void testKt27070() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt27070.kt");