<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I've removed a lot of possibly-irrelevant stuff and boiled my current obstacle down to the following:</div><div><br></div><div>In #lang racket, the following works fine:</div><div><br></div><div><div>(for/sum [[ii 300]]</div><div>  pi)</div></div><div><br></div><div><br></div><div><br></div><div>In #lang typed/racket, I try to do the same thing:</div><div><br></div><div><div>(for/sum: : Flonum [[ii : Index 300]]</div><div>  pi)</div></div><div><br></div><div>and I get the type error "Expected Flonum, but got Zero".  Where is there a zero anywhere in this code?  And even if there were a zero, shouldn't Zero be a subtype of Flonum?</div><div><br></div><div>Don't tell me the Zero I'm running into is the initial value of for/sum's hidden accumulator....</div><br><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Stephen Bloch</div><div><a href="mailto:sbloch@adelphi.edu">sbloch@adelphi.edu</a></div></div></span>GPG  key at <a href="http://adelphi.edu/sbloch/sbloch.pubkey.asc">http://adelphi.edu/sbloch/sbloch.pubkey.asc</a></span>
</div>
<br></body></html>