Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Commit

Permalink
use provided type in Emil:is
Browse files Browse the repository at this point in the history
  • Loading branch information
politza committed Feb 9, 2025
1 parent 00c30f7 commit b4fc2a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/Emil/src/Emil/Transformer.el
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@
(-let ((type (Emil:Type:read (nth 1 arguments))))
(pcase-exhaustive macro
('Emil:is
(Emil:Analyzer:check self (nth 0 arguments) type context environment))
(-let (((context . typed-form)
(Emil:Analyzer:check self (nth 0 arguments) type context environment)))
(cons context (Emil:Form:with-type typed-form type))))
('Emil:as
(-let (((context . typed-form)
(Emil:Analyzer:infer self (nth 0 arguments) context environment)))
Expand Down

0 comments on commit b4fc2a7

Please sign in to comment.