DescriptionCompileType::ToNullableCid must check whether type is implemented
This should be done in addition to checking whether type
has subclasses as subtyping relation is defined in terms of interfaces.
Otherwise type propagation infers that result of a mint
operation has a kIntegerCid because IntType has no subclasses.
It is only appropriate to not take subinterfaces into
account when inferring cid of the receiver.
No regression test included because currently it is not possible
to write one: fact that we inferred kIntegerCid for result
of mint operations is not observable and for other IR
instructions nullability prevents us from infering
anything but kDynamicCid.
R=kmillikin@google.com
BUG=
Committed: https://code.google.com/p/dart/source/detail?r=19322
Patch Set 1 #Patch Set 2 : fix comments #
Messages
Total messages: 3 (0 generated)
|