Skip to content

cmd/compile: error about println says print #79259

Closed as duplicate
Closed as duplicate

Description

@rsc

https://go.dev/play/p/MvH4ETAjks5

package main

func main() {
	println([1]byte{})
}
./prog.go:4:9: illegal types for operand: print
	[1]byte

Should say println not print. When I saw it I thought I had accidentally not said println.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions