You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Array class commonSuperclassWith: Interval class
```
```
commonSuperclassWith: aClass
"return the next common superclass between me and aClass. If I am the superclass of aClass, that is me"
<reflection: 'Class structural inspection - Iterating and querying hierarchy'>
^ self withAllSuperclasses detect: [ :class | (aClass allSuperclasses includes: class) ] ifNone: nil
```