* Fix: multi-assign expression panic The following corrections are done: * interp/ast.go: in case of ast.ValueSpec node, fix the decision between multi-assign or single assign * interp/cfg.go: in multi-assign parse, skip type symbol if it is present
11 lines
122 B
Go
11 lines
122 B
Go
package main
|
|
|
|
func r2() (int, int) { return 1, 2 }
|
|
|
|
var a, b int = r2()
|
|
|
|
func main() { println(a, b) }
|
|
|
|
// Output:
|
|
// 1 2
|