Simplify check for NativePointed in SpecialBackendChecksTraversal

This commit is contained in:
Svyatoslav Scherbina
2020-11-02 16:38:31 +03:00
committed by Stanislav Erokhin
parent d4beef6872
commit 2ce2565e8f
@@ -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")
}