in src/Assert.hack [18:31]
private static function isDiffable(mixed $x): bool {
if ($x is bool || $x is arraykey) {
return true;
}
if ($x is Container<_>) {
foreach ($x as $elem) {
if (!self::isDiffable($elem)) {
return false;
}
}
return true;
}
return false;
}