diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/SpecialBackendChecksTraversal.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/SpecialBackendChecksTraversal.kt index ec64e94faf8..d82f3c04f3b 100644 --- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/SpecialBackendChecksTraversal.kt +++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/SpecialBackendChecksTraversal.kt @@ -317,7 +317,7 @@ private class BackendChecker(val context: Context, val irFile: IrFile) : IrEleme ) } - if (callee.returnType.getInlinedClassNative()?.descriptor == interop.nativePointed) + if (callee.returnType.isNativePointed(symbols)) reportError(expression, "Native interop types constructors must not be called directly") }