Closed eclipse-ocl-bot closed 4 hours ago
| --- | --- | | Bugzilla Link | 456057 | | Status | RESOLVED INVALID | | Importance | P3 normal | | Reported | Dec 23, 2014 04:42 EDT | | Modified | Dec 23, 2014 07:41 EDT | | Reporter | Ed Willink |
let s = Sequence{0.0,0.0,0.0} in s->collect(r | r + Sequence{1.0,2.0,3.0}->at(s->indexOf(r)))
evaluates to 1.0,1.0,1.0 rather than invalid. It seems that the invalid from indexOf has not propagated correctly.
By Ed Willink on Dec 23, 2014 07:41
No. It is a reading error.
Execution is always Sequence{0.0,0.0,0.0}->indexOf(0.0) giving 1.
| --- | --- | | Bugzilla Link | 456057 | | Status | RESOLVED INVALID | | Importance | P3 normal | | Reported | Dec 23, 2014 04:42 EDT | | Modified | Dec 23, 2014 07:41 EDT | | Reporter | Ed Willink |
Description
let s = Sequence{0.0,0.0,0.0} in s->collect(r | r + Sequence{1.0,2.0,3.0}->at(s->indexOf(r)))
evaluates to 1.0,1.0,1.0 rather than invalid. It seems that the invalid from indexOf has not propagated correctly.