Spot the bug in job scheduling

from Unity DOTS
Unity 6.6 / Entities 1.4.8 / Burst 1.8.30 intermediate 4 min 2 issues to find

Find the dependency and scheduling problems in this generated system.

csharp
[BurstCompile]
public partial struct VelocitySystem : ISystem
{
    [BurstCompile]
    public void OnUpdate(ref SystemState state)
    {
        var handle = new IntegrateVelocityJob()
            .ScheduleParallel();
        handle.Complete();
        state.Dependency = handle;
    }
}
Open in playground
Report an error