summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJames Bardin <j.bardin@gmail.com>2019-07-02 14:56:34 -0400
committerGitHub <noreply@github.com>2019-07-02 14:56:34 -0400
commit5b39d9ff3a9a746a3cdfcda7c97c3bb070a960f9 (patch)
tree581eb60388a0c558d13e4279bc2fb6705b0ab8af /cmd
parent0b64543c968c45c8227fcde1293ee2655262c45b (diff)
Expect correct type from a conditional with nulls (#116)
The type unification done when evaluating a conditional normally needs to return a DynamicPseudoType when either condition is dynamic. However, a null dynamic value represents a known value of the desired type rather than an unknown type, and we can be certain that it is convertible to the desired type during the final evaluation. Rather than unifying types against nulls, directly assign the needed conversion when evaluating the conditional.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions