SLC: force boxed return type when needed

e.g., when overriding a function whose return type is not primitive

^KT-57579 Fixed
This commit is contained in:
Jinseong Jeon
2023-03-26 00:30:38 -07:00
committed by Dmitrii Gridin
parent 19dbe69651
commit 1b3b554084
6 changed files with 44 additions and 5 deletions
@@ -33,6 +33,11 @@ public enum class KtTypeMappingMode {
*/
SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS,
/**
* When method return type should be boxed (e.g., kotlin.Int to Ljava/lang/Integer;)
*/
RETURN_TYPE_BOXED,
/**
* Optimal mode to convert the return type of declarations if it's part of signature.
*/