Skip to content

multiple return value at global level generates multiple calls #402

@rogpeppe

Description

@rogpeppe
the attached code should only print "foo" once.
it actually prints it three times (the more return values,
the more times).

What is your $GOOS?  $GOARCH?

darwin 386

Which revision are you using?  (hg identify)
8cc3a6f7ad37+ tip

Attachments:

  1. initbug.go (156 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions