CompositeCollider2D.GetPath bug

Docs say CompositeCollider2D.GetPath() (unlike PolygonCollider2D.GetPath()) requires 2 arguments and returns integer. And it does not compile when you pass it only 1 argumnent (path index). This is a bug, right?

Answer I got from Unity support:
"that is by design. There are several reason why these are different:

  • PolygonCollider2D.GetPath() allocates memory by creating array, what we try not to do anymore.
  • We can not just change old PolygonCollider2D.GetPath(), since it will cause a bunch of problem for users."