Add an implicit cast to Unit in returns from a constructor.

This commit is contained in:
Steven Schäfer
2019-03-25 10:39:00 +01:00
committed by Dmitry Petrov
parent 826f55ecb4
commit 59c5d8bdb8
6 changed files with 47 additions and 3 deletions
@@ -907,6 +907,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
runTest("compiler/testData/ir/irText/expressions/ifElseIf.kt");
}
@TestMetadata("implicitCastInReturnFromConstructor.kt")
public void testImplicitCastInReturnFromConstructor() throws Exception {
runTest("compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.kt");
}
@TestMetadata("implicitCastOnPlatformType.kt")
public void testImplicitCastOnPlatformType() throws Exception {
runTest("compiler/testData/ir/irText/expressions/implicitCastOnPlatformType.kt");