IR: IMPLICIT_DYNAMIC_CAST

Generate IMPLICIT_DYNAMIC_CAST for implicit casts from `dynamic` to `T`
This commit is contained in:
Dmitry Petrov
2019-04-16 12:52:22 +03:00
parent 422c13bd03
commit 760806a1ac
11 changed files with 79 additions and 50 deletions
@@ -291,7 +291,7 @@ open class InsertImplicitCasts(
if (expectedType.isNullableAny()) {
this
} else {
implicitCast(expectedType, IrTypeOperator.IMPLICIT_CAST)
implicitCast(expectedType, IrTypeOperator.IMPLICIT_DYNAMIC_CAST)
}
}