mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
* tuple unpacking for vars as just sugar, allowing nesting * set temp symbol AST * hopeful fix some issues, add test for #19364 * always use temp for consts * document, fix small issue * fix manual indentation * actually fix manual * use helper proc * don't resem temp tuple assignment
5 lines
79 B
Nim
5 lines
79 B
Nim
proc foo(): tuple[a, b: string] =
|
|
result = ("a", "b")
|
|
|
|
const (a, b*) = foo()
|