1b2aebc41b
By having _addImplicitChecks add all the checks to implicitIsChecks before recursing into them, we avoid exploring each new check via recursion. For a wide enough class hierarchy where one check implies many other checks, the recursive visiting pattern could lead to stack overflows. Change-Id: I7f50af4e8c0859ac77da143ade68cc3d9e2cc503 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/362403 Reviewed-by: Mayank Patke <fishythefish@google.com> Commit-Queue: Nate Biggs <natebiggs@google.com>