From 7769d141b243a025ca8f3896ec799d73c54b51de Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 13 Oct 2025 21:26:35 +0800 Subject: [PATCH] progress --- compiler/semstmts.nim | 2 +- compiler/semtypes.nim | 20 -------------------- compiler/transf.nim | 38 +------------------------------------- 3 files changed, 2 insertions(+), 58 deletions(-) diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index af4384b998..ce8b59f9cd 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1131,7 +1131,7 @@ proc semForVars(c: PContext, n: PNode; flags: TExprFlags): PNode = # BUGFIX: don't use `iter` here as that would strip away # the ``tyGenericInst``! See ``tests/compile/tgeneric.nim`` # for an example: - v.typ = makeIterTupleType(c, iterBase) + v.typ = iterBase n[0] = newSymNode(v) if sfGenSym notin v.flags and not isDiscardUnderscore(v): addDecl(c, v) elif v.owner == nil: setOwner(v, getCurrOwner(c)) diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 77973521df..42efcd2399 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -1787,23 +1787,6 @@ proc maybeAliasType(c: PContext; typeExpr, prev: PType): PType = else: result = nil -proc makeIterTupleType(c: PContext; typ: PType): PType = - if typ.kind == tyTuple: - var hasView = false - result = newTypeS(tyTuple, c) - - for i in 0..