File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -381,8 +381,8 @@ refreshTerms sc ss =
381
381
OM (termSub %= Map. union extension)
382
382
where
383
383
freshenTerm (TypedExtCns _cty ec) =
384
- do new <- liftIO $ do i <- scFreshGlobalVar sc
385
- scExtCns sc ( EC i (ecName ec) (ecType ec))
384
+ do ec' <- liftIO $ scFreshEC sc (toShortName (ecName ec)) (ecType ec)
385
+ new <- liftIO $ scExtCns sc ec'
386
386
return (ecVarIndex ec, new)
387
387
388
388
------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -709,8 +709,8 @@ refreshTerms sc ss =
709
709
OM (termSub %= Map. union extension)
710
710
where
711
711
freshenTerm (TypedExtCns _cty ec) =
712
- do new <- liftIO $ do i <- scFreshGlobalVar sc
713
- scExtCns sc ( EC i (ecName ec) (ecType ec))
712
+ do ec' <- liftIO $ scFreshEC sc (toShortName (ecName ec)) (ecType ec)
713
+ new <- liftIO $ scExtCns sc ec'
714
714
return (ecVarIndex ec, new)
715
715
716
716
------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments