Can't create dispose job for NativeArray in Burst

Burst throws an exception at runtime when scheduling a dispose job using NativeArray.Dispose(inputDeps).

Support for burst compiled calls to Schedule depends on the Collections package.```

Apparently, the dispose job doesn't have reflection data set up for Burst calls. Unfortunately I can't manually register the job, since it's an internal class.

I couldn't find any useful information on this anywhere. Does anyone have a solution?

How do you call it, on which version of Unity?

As far as I know, NativeArray.Dispose(inputDeps) schedules non-Bursted job, as stated in the source:

// [BurstCompile] - can’t use attribute since it’s inside com.unity.Burst.