7ac53f1825
We were only treating Object as a top type if NNBD was disabled. This is incorrect and we should be treating Object as a top type whenever legacy subtyping is in effect. In particular, Object acts as a top type in weak mode. Change-Id: I76acc25e92fda2b9e2b7872fc72d319161318874 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144689 Reviewed-by: Stephen Adams <sra@google.com> Commit-Queue: Mayank Patke <fishythefish@google.com>