Skip to content

Commit

Permalink
Fix retypechecking of constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
valis committed Jun 24, 2024
1 parent 4e6e441 commit 3540f92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,7 @@ private boolean typecheckConstructor(Concrete.Constructor def, List<ExpressionPa
dataDefinition.addConstructor(constructor);
}

ok = typecheckParameters(def, constructor, list, null, dataDefinition.getSort(), myNewDef ? null : oldConstructor.getParameters(), null, null) != null;
ok = typecheckParameters(def, constructor, list, null, dataDefinition.getSort(), null, null, null) != null;
if (constructor != null) {
constructor.setStrictParameters(getStrictParameters(def.getParameters()));
}
Expand Down

0 comments on commit 3540f92

Please sign in to comment.