Don't attempt to unfold pair opts when we have no type info.

Fixes compilation of the `midi-readwrite` package.
This commit is contained in:
Vincent St-Amour 2015-11-02 13:26:30 -06:00
parent ae0741aaa7
commit ea6968f1d9

View File

@ -137,6 +137,7 @@
[(tc-result1: t) t])]
[res #'e.arg])
([accessor (in-list (reverse (syntax->list #'e.alt)))])
#:break (not t)
(cond
[(subtype t (-pair Univ Univ)) ; safe to optimize this one layer
(syntax-parse accessor