Skip to content

Commit

Permalink
Update compiler/semexprs.nim
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Rumpf <[email protected]>
  • Loading branch information
metagn and Araq authored Dec 3, 2024
1 parent 3f6ca89 commit efab0c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/semexprs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efab0c8

Please sign in to comment.