5855d91ba8
RtiTypeEnvironment currently does not support being extended. However it's used for factory constructors which themselves can have generic functions defined in their bodies. This means we have to allow the ability to extend RtiTypeEnvironments as well. Bug: https://github.com/flutter/flutter/issues/160338 Change-Id: I9b4e79b44f503a4a987e0c38da86fdce81361e4c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/406344 Reviewed-by: Mark Zhou <markzipan@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Nate Biggs <natebiggs@google.com>