5ecf6db857
Maybe? With an explicit type check we don't try to make an impression that anything more happens here, e.g. for type parameters. Similarly, for https://github.com/dart-lang/sdk/issues/36697 we would need to introduce `InvalidType`, which is not `DynamicType`. And so, `DartType.isDynamic` should not return `true` for `InvalidType`, it is not a property that various types may have, and should be replaced with explicit `is DynamicType`. We also have `UnknownInferredType`, but it should never leak to clients. Change-Id: I302b06355143d97bb52922c805dbad585a522e0a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/288340 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>