Simplify check for NativePointed in SpecialBackendChecksTraversal
This commit is contained in:
committed by
Stanislav Erokhin
parent
d4beef6872
commit
2ce2565e8f
+1
-1
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user