JVM_IR Support IrDefinitelyNotNullType

This commit is contained in:
Dmitry Petrov
2022-02-08 18:10:48 +03:00
committed by Space
parent a565a17f3e
commit 4326e26907
3 changed files with 19 additions and 8 deletions
@@ -54,6 +54,10 @@ object AbstractTypeMapper {
mode: TypeMappingMode = TypeMappingMode.DEFAULT,
sw: Writer? = null
): Type {
if (type is DefinitelyNotNullTypeMarker) {
return mapType(context, type.original(), mode, sw)
}
if (type is SimpleTypeMarker && type.isSuspendFunction()) {
val argumentsCount = type.argumentsCount()
val argumentsList = type.asArgumentList()