Skip to content

Commit

Permalink
Fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
CuppoJava committed May 20, 2024
1 parent cfbae2b commit bb63a53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/type-reader.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ defn resolve (prog:TestTypeProgram) -> TestTypeProgram :
val n = match(lookup?(scope,name(t))) :
(n:Int) : n
(f:False) : make-id(scope,name(t))
TUVar(n, MixBound(types(t)))
val types* = map({resolve(_, scope) as TArrow}, types(t))
TUVar(n, MixBound(types*))
(t:TCap) :
val n = lookup(scope, name(t) as Symbol)
TCap(n, name(t))
Expand Down

0 comments on commit bb63a53

Please sign in to comment.