X-Git-Url: http://git.lukelau.me/?p=scheme.git;a=blobdiff_plain;f=typecheck.scm;h=d180e44e92e755f1e4fbb4172f3535e70f8ebb24;hp=a526620e7139665fd72273394914462419cb45d0;hb=006b94f5a24a794665788737fec8d54086284317;hpb=c4a5f8ab1efce20f0e1181ffe34639facb19594a diff --git a/typecheck.scm b/typecheck.scm index a526620..d180e44 100644 --- a/typecheck.scm +++ b/typecheck.scm @@ -259,7 +259,7 @@ ; we typecheck the lambda calculus only (only single arg lambdas) (define (typecheck prog) - (let ([expanded (program-map-exprs expand-pattern-matches prog)]) + (let ([expanded (expand-pattern-matches prog)]) (cadr (check (init-adts-env expanded) (normalize (program-body expanded))))))