Hi was going through the how sling resolution works.
I came against this scenario which is mentioned on Adobe aem-developer guide
https://docs.adobe.com/docs/en/aem/6-2/develop/the-basics.html
This is the scenario which is mentioned- / a ( does not have any resource supertype or resource type)
b (sling:resourceSuperType = a)
c (sling:resourceSuperType = b)
x (sling:resourceType = c)
y (sling:resourceType = c, sling:resourceSuperType = a)
The type hierarchy of /x is [ c, b, a, ] while for /y the hierarchy is [ c, a, ] because /y has the sling:resourceSuperType property whereas /x does not and therefore its supertype is taken from its resource type.
now I understand how /x is resolved. But I am not sure about /y. first it resolved to /c. which itself had an sling:resourceSuperType as b. Should the sling resolution not go to /b as well. how is the supertype is overriden and resource is resolved to a instead of b.