c688d0c0c3
If there are circular references between type parameters and types in the bounds, currently serialization leaves original type parameters unchanged, which results in failures to serialize compiled expression procedure. This CL makes sure to clone all type parameters first, then passes map with old-to-new type parameters to CloneVisitor. Bug: https://github.com/dart-lang/sdk/issues/34052 Change-Id: Idf3e6e6e9099f93cdd7e970ab3b21921cdb29178 Reviewed-on: https://dart-review.googlesource.com/75241 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Alexander Aprelev <aam@google.com>