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:
committed by
Dmitrii Gridin
parent
19dbe69651
commit
1b3b554084
+1
@@ -76,6 +76,7 @@ internal class KtFirPsiTypeProvider(
|
||||
KtTypeMappingMode.GENERIC_ARGUMENT -> TypeMappingMode.GENERIC_ARGUMENT
|
||||
KtTypeMappingMode.SUPER_TYPE -> TypeMappingMode.SUPER_TYPE
|
||||
KtTypeMappingMode.SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS -> TypeMappingMode.SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS
|
||||
KtTypeMappingMode.RETURN_TYPE_BOXED -> TypeMappingMode.RETURN_TYPE_BOXED
|
||||
KtTypeMappingMode.RETURN_TYPE ->
|
||||
rootModuleSession.jvmTypeMapper.typeContext.getOptimalModeForReturnType(type.coneType, isAnnotationMethod)
|
||||
KtTypeMappingMode.VALUE_PARAMETER ->
|
||||
|
||||
Reference in New Issue
Block a user