aboutsummaryrefslogtreecommitdiff
path: root/stlc-ext.rkt
diff options
context:
space:
mode:
authorJJ2024-10-23 21:02:47 +0000
committerJJ2024-10-24 00:26:25 +0000
commit9b1389448b5e29e2baa8a48e5e9c4b24bae207c9 (patch)
treea3de1da5046dc15ca582507be527c080f06551ca /stlc-ext.rkt
parente6cf303d3acce1d82e1dc477efc67867cbacf3c3 (diff)
minor identifier changes
Diffstat (limited to 'stlc-ext.rkt')
-rw-r--r--stlc-ext.rkt4
1 files changed, 2 insertions, 2 deletions
diff --git a/stlc-ext.rkt b/stlc-ext.rkt
index 84c476c..2662135 100644
--- a/stlc-ext.rkt
+++ b/stlc-ext.rkt
@@ -208,8 +208,8 @@
;; Expands a type alias into weak-head normal form, for literal matching.
;; (expand Type Table[Id, Expr ⊕ Type]): Type
(define (expand t Γ)
- (if (dict-has-key? Γ t)
- (expand (dict-ref Γ t) Γ) t))
+ (if (dict-has-key? Γ `(type ,t))
+ (expand (dict-ref Γ `(type ,t)) Γ) t))
;; Checks if two types are equivalent up to α-conversion in context
;; (equiv-type Expr Expr Table[Sym Expr]): Bool