BurntSushi / go-sumtype

A simple utility for running exhaustiveness checks on Go "sum types."
The Unlicense
420 stars 22 forks source link

Upgrade golang.org/x/tools for compatibility with Go 1.14. #14

Closed atombender closed 1 year ago

atombender commented 4 years ago

Upgrades golang.org/x/tools to v0.0.0-20200423205358-59e73619c742. Fixes cases such as this:

$ cat <<end > main.go
 package main

import (
    "errors"
)

func main() {
    _ = errors.New("x")
}
end
$ go-sumtype main.go
internal error: package "errors" without types was imported from "command-line-arguments"
ghostsquad commented 4 years ago

any movement on this?

sudarshan-reddy commented 3 years ago

@BurntSushi you are probably busy but it might be good to have this merged because using go-sumtype actively errors with newer versions of Go.