Skip to content

cmd/compile: error about println says print #79258

Closed

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.

Activity

  1. added this to the Go1.27 milestone on May 7, 2026
  2. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on May 7, 2026
  3. gabyhelp commented on May 7, 2026

    @gabyhelp

    Related Issues

    (Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

  4. gopherbot commented on May 8, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/775800 mentions this issue: cmd/compile: fixed error message about println says print

  5. added
    FixPendingIssues that have a fix which has not yet been reviewed or submitted.
    and removed
    NeedsFixThe path to resolution is known, but the work has not been done.
    on May 12, 2026
  6. added a commit that references this issue on May 12, 2026
    f552547
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixPendingIssues that have a fix which has not yet been reviewed or submitted.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