Skip to content

Commit 568c95d

Browse files
authored
Merge pull request #884 from melt-umn/feature/revert-unify-trackedness
Revert "Disable comparison of dataness/trackedness in NT unification"
2 parents e9f6dc9 + 410bf03 commit 568c95d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

grammars/silver/compiler/definition/type/Unification.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ top::Type ::= fn::String ks::[Kind] data::Boolean tracked::Boolean
109109
top.unify =
110110
case top.unifyWith of
111111
| nonterminalType(ofn, oks, odata, otracked) ->
112-
if fn == ofn --&& data == odata && tracked == otracked -- Mismatched data/tractness can happen when comparing interface files
112+
if fn == ofn && data == odata && tracked == otracked -- Mismatched data/tractness can happen when comparing interface files
113113
then if ks == oks
114114
then emptySubst()
115115
else error("kind mismatch during unification for " ++ prettyType(^top) ++ " and " ++ prettyType(top.unifyWith)) -- Should be impossible

grammars/silver/compiler/extension/rewriting/Rewriting.sv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ top::Expr ::= 'traverse' n::QName '(' es::AppExprs ',' anns::AnnoAppExprs ')'
5151

5252
local numChildren::Integer = n.lookupValue.typeScheme.arity;
5353
local annotations::[String] = map(fst, n.lookupValue.typeScheme.typerep.namedTypes);
54-
es.appExprTypereps = repeat(nonterminalType("silver:rewrite:Strategy", [], false, false), numChildren);
54+
es.appExprTypereps = repeat(nonterminalType("silver:rewrite:Strategy", [], false, true), numChildren);
5555
es.appExprApplied = n.unparse;
5656
es.decSiteVertexInfo = nothing();
5757
es.dispatchFlowDeps = [];
5858
es.appProd = nothing();
5959
es.appIndexOffset = 0;
6060
anns.appExprApplied = n.unparse;
6161
anns.funcAnnotations =
62-
map(pair(fst=_, snd=nonterminalType("silver:rewrite:Strategy", [], false, false)), annotations);
62+
map(pair(fst=_, snd=nonterminalType("silver:rewrite:Strategy", [], false, true)), annotations);
6363
anns.remainingFuncAnnotations = anns.funcAnnotations;
6464

6565
local localErrors::[Message] =

0 commit comments

Comments
 (0)