JVM_IR KT-50076 avoid CHECKCAST on moved dispatch receiver parameter

This commit is contained in:
Dmitry Petrov
2021-12-09 15:34:42 +03:00
committed by Space
parent 94bb465e62
commit 627d838343
12 changed files with 191 additions and 10 deletions
@@ -50,7 +50,6 @@ enum class IrTypeOperator {
/**
* SAM conversion: value of functional type F is used where Single Abstract Method interface value is expected.
* Currently this is possible in Kotlin/JVM only, however, there's a big demand for SAM conversion for Kotlin interfaces.
*/
SAM_CONVERSION,
@@ -61,7 +60,8 @@ enum class IrTypeOperator {
IMPLICIT_DYNAMIC_CAST,
/**
* C-like reinterpret_cast<T> using as primitive type operation in JS
* C-like reinterpret_cast<T> using as primitive type operation in JS.
* On JVM, tells back-end to treat argument as a value of a given type (even though exact JVM types might differ).
*/
REINTERPRET_CAST;
}