Skip to content

cmd/compile: method expressions are misprinted #43428

@mdempsky

Description

@mdempsky

On the dev.regabi branch, the error message for this source file:

package p

import "bytes"

var x int = (*bytes.Buffer).Len

mentions *bytes.Buffer.Len. That's incorrect: it should be (*bytes.Buffer).Len, as it appears in the source.

(I suspect this is related to the ir/fmt.go changes in 4629f6a. Though it turns out we're printing it incorrectly even on master, where it prints as bytes.(*Buffer).Len.)

/cc @cuonglm

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions