DescriptionAdd type inference for assert statements.
Note that since the first argument of an assert statement may be
either of type `bool` or `() -> bool`, and the second argument may be
any object, no type context is passed down in downward inference; the
only inference we need to do is to recursively invoke
`inferExpression` to ensure that subexpressions are inferred properly.
R=scheglov@google.com
Committed: https://github.com/dart-lang/sdk/commit/5cd3c2c8dc64f5faa683c37be7a16fdd8a1cee29
Patch Set 1 #
Messages
Total messages: 5 (2 generated)
|