Skip to content

cmd/gc: composite literal import regression after e73800eb2b00 #4932

@davecheney

Description

@davecheney
What steps will reproduce the problem?

https://golang.org/cl/7395054 has introduced a regression in juju similar to
the one it was trying to fix, at or after revision e73800eb2b00 I see the following when
trying to compile

# launchpad.net/juju-core/state/statecmd
state/statecmd/config.go:12: cannot use &txn.Op literal (type *txn.Op) as type
txn.Op in return argument
launchpad.net/juju-core/worker/uniter/relation
# launchpad.net/juju-core/worker/uniter/charm
worker/uniter/charm/charm.go:11: cannot use &txn.Op literal (type *txn.Op) as type
txn.Op in return argument

config.go:12 is import "launchpad.net/juju-core/state"
charm.go:11 is the same

What is the expected output? What do you see instead?


Please use labels and text to provide additional information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions