Skip to content

Commit

Permalink
map the copy of the Type members
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed May 9, 2023
1 parent ebb52ce commit 0711186
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,14 @@ case object TypeSignatures extends IRPass {
lastSignature = None
res
case ut: IR.Module.Scope.Definition.Type =>
// ut.members.foreach(d => {
// verifyAscribedArguments(d.arguments)
// })
Some(ut.mapExpressions(resolveExpression))
Some(ut.mapExpressions(resolveExpression)).map(typ =>
typ.copy(
members = typ.members.map(d => {
verifyAscribedArguments(d.arguments)
d
})
)
);
case err: IR.Error => Some(err)
case ann: IR.Name.GenericAnnotation => Some(ann)
case _: IR.Module.Scope.Definition.SugaredType =>
Expand Down

0 comments on commit 0711186

Please sign in to comment.