ParentFull threadmuyyatin·The generics in Scala should be able to catch the cases you mentioned. Definitely worth checking out.View on HN