Generate synthetic box method for each erased inline class

This commit is contained in:
Mikhail Zarechenskiy
2018-02-05 03:37:27 +03:00
parent f856455841
commit a59917b6f8
7 changed files with 154 additions and 18 deletions
@@ -27,6 +27,13 @@ class TypeMappingMode private constructor(
@JvmField
val GENERIC_ARGUMENT = TypeMappingMode()
/**
* see KotlinTypeMapper.forceBoxedReturnType()
* This configuration should be called only for method return type
*/
@JvmField
val RETURN_TYPE_BOXED = TypeMappingMode(needInlineClassWrapping = true)
/**
* kotlin.Int is mapped to I
*/