Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/semexprs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ proc semSym(c: PContext, n: PNode, sym: PSym, flags: TExprFlags): PNode =
elif s.ast != nil:
result = semExpr(c, s.ast)
else:
n.typ() = s.typ
n.typ() = makeTypeDesc(c, s.typ)
return n
of skType:
if n.kind != nkDotExpr: # dotExpr is already checked by builtinFieldAccess
Expand Down
6 changes: 6 additions & 0 deletions tests/tuples/tgenericparamtypetuple.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# issue #25312

import heapqueue

proc failingTest[T](test: HeapQueue[(float, T)]) = # (Compile) Error: Mixing types and values in tuples is not allowed.
discard
Loading