DescriptionFix top level type inference for binary operators.
Multiple changes were required:
- The analyzer's mock SDK had an incorrect return type for
`num.operator/`.
- We weren't considering the RHS of the binary operators `+`, `-`,
`*`, and `%` to be an inference dependency (we need to, since the
special overload rules for int depend on the type of the RHS).
- We weren't executing the overload logic when doing top level type
inference.
- The logic for deciding what operators are overloaded was incorrect.
R=scheglov@google.com
Committed: https://github.com/dart-lang/sdk/commit/a1ecb46a4c657ff5bc59b5fce98004ca21246135
Patch Set 1 #
Total comments: 2
Messages
Total messages: 6 (2 generated)
|