8f1ca007f2
The inferred types for const expressions shouldn't refer to type variables that are in scope, because at runtime those type variables may take on different values at different times (meaning the const expression isn't actually const after all). Test cases are in inference_new, since analyzer implements incorrect behavior. Fixes #30677. Change-Id: I27b9a95a92557ad1ce1c2c0f28d9a760c372d52a Reviewed-on: https://dart-review.googlesource.com/5298 Reviewed-by: Konstantin Shcheglov <scheglov@google.com>