Skip to content

Commit

Permalink
Рассахариватель не удивляется функциям с суффиксами (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazdaywik committed May 15, 2020
1 parent 91c461a commit 9061567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/Desugaring.ref
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $INCLUDE "LibraryEx";
$EXTERN Pass-UnCondition;

*$FROM TreeUtils
$EXTERN NewVarName, CreateContext, CreateSpecPatternForContext;
$EXTERN NewVarName, AddSuffix, CreateContext, CreateSpecPatternForContext;


$ENTRY Desugar {
Expand Down Expand Up @@ -351,7 +351,7 @@ Pass-NameNestedFuncs {
(Function s.ScopeClass (e.Name) e.Body) =
(Function
s.ScopeClass (e.Name)
<NameNestedBody (e.Name SUF) e.Body>
<NameNestedBody (<AddSuffix e.Name ()>) e.Body>
);

t.OtherProgramElement = t.OtherProgramElement;
Expand Down

0 comments on commit 9061567

Please sign in to comment.