diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 198c6c58f1858..46de230f23a5d 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -3063,8 +3063,7 @@ proc semTupleConstr(c: PContext, n: PNode, flags: TExprFlags; expectedType: PTyp # convert `tupexp` to typedesc if necessary: if tupexp.typ.kind == tyFromExpr: # tyFromExpr is already ambivalent between types and values - result = tupexp - return + return tupexp var isTupleType: bool = false if tupexp.len > 0: # don't interpret () as type isTupleType = tupexp[0].typ.kind == tyTypeDesc