DescriptionMake AST-based type inference handle <bottom> consistently.
The non-AST-based type inference engine has the following quirk. With
the source code:
var x = null;
The type of `x` is inferred as `dynamic`, whereas the type of the
synthetic initializer function associated with `x` is inferred as `()
-> <bottom>`.
This CL makes the AST-based type inference engine act in the same way
for consistency.
In the future we may want to change both engines to consistently infer
`dynamic`.
R=scheglov@google.com
Committed: https://github.com/dart-lang/sdk/commit/f251da2dc9f4f8de16ebe1f85079f3f41a610a4e
Patch Set 1 #
Messages
Total messages: 5 (2 generated)
|