diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index cbbb8cf556..a6cab96a1f 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -456,8 +456,47 @@ proc semGenericStmt(c: PContext, n: PNode, of nkIdent: a = n[i] else: illFormedAst(n, c.config) addDecl(c, newSymS(skUnknown, getIdentNode(c, a), c)) - of nkObjectTy, nkTupleTy, nkTupleClassTy: - discard + of nkTupleTy: + for i in 0.. 0: + openScope(c) + for i in 0..