go-lang-plugin-org / go-lang-idea-plugin

Google Go language IDE built using the IntelliJ Platform
https://plugins.jetbrains.com/plugin/5047
Other
4.57k stars 573 forks source link

Non-name on left side of shorthand assignment #2232

Open dlsniper opened 8 years ago

dlsniper commented 8 years ago
package main

import "fmt"

type info struct {
    result int
}

func work() (int,error) {
    return 13,nil
}

func main() {
    var data info

    data.result, err := work() // non-name data.result on left side of := 
    fmt.Printf("info: %+v\n", data)
}
modulor commented 6 years ago

I have the same problem

dlsniper commented 6 years ago

@modulor this issue has been fixed a long time ago in GoLand, the JetBrains maintained IDE (and its IntelliJ IDEA Ultimate 2017.3 or newer with the Go plugin). This plugin hasn't been updated in about 2 years. If you are using one of those editors, please use the issue tracker https://youtrack.jetbrains.com/issues/Go for them. Thank you.