<div>Thanks,</div><div><br></div><div>I did catch that, was just pointing out the non-termination. The original source file was much larger and it took awhile to pare it down to the root cause. Definitely a non-showstopper issue however.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 1, 2012 at 12:16 PM, Sam Tobin-Hochstadt <span dir="ltr"><<a href="mailto:samth@ccs.neu.edu" target="_blank">samth@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Nov 1, 2012 at 12:07 PM, Ray Racine <<a href="mailto:ray.racine@gmail.com">ray.racine@gmail.com</a>> wrote:<br>
> Fresh build from Racket git MASTER, the following causes DRRacket's Check<br>
> Syntax to loop without termination.<br>
<br>
</div>Clearly, this isn't the behavior you want, but I don't think a<br>
contract is possible to generate for this code.<br>
<br>
If you change the type of the S2-x field to `(S0 T)`, then it works.<br>
That might even have been what you wanted.<br>
<div class="im"><br>
><br>
> #lang typed/racket/base<br>
><br>
> (provide f)<br>
><br>
> (struct: (T) S1 ([x : (Listof String)]))<br>
><br>
> (struct: (T) S2 ([x : S0]<br>
> [g : (T -> Boolean)]))<br>
><br>
> (define-type (S0 T) (U (S1 T) (S2 T)))<br>
><br>
> (: f (String -> (S0 String)))<br>
> (define (f x)<br>
> (S1 '()))<br>
><br>
</div>> ____________________<br>
> Racket Users list:<br>
> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
><br>
<br>
<br>
<br>
--<br>
sam th<br>
<a href="mailto:samth@ccs.neu.edu">samth@ccs.neu.edu</a><br>
</blockquote></div><br></div>