diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index c8eda9c37d..aa05f8d85d 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -457,8 +457,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..