Skip to content

x/playground: missing output in Playground example #21170

@bcmills

Description

@bcmills

The example program from #21168 (https://play.golang.org/p/XPEU7FoTes) can only exit early if it panics, and ends with an unconditional call to fmt.Println with an int64 argument.

Oddly, with the current Playground version of the Go compiler, it appears to print a blank line instead of the final number:
screenshot 2017-07-25 at 17 24 43

The gray (rather than red) text at the bottom and lack of a panic dump suggest that the program did, in fact, run to completion, but where is the output?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions