tooltitude / support

Tooltitude Support
https://www.tooltitude.com
Other
21 stars 0 forks source link

`interface { interface{} }` leads to erroneous warnings #41

Closed d-enk closed 4 months ago

d-enk commented 4 months ago

Tooltitude Version: v0.74.0

OS Version: OS: Linux x64 6.5.0-25-generic

VS Code Version: 1.89.1

Go Version: 1.22.3

package main

func zero[T any]() (t T) { return }

func main() {
    zero1 := zero[int]() // Unused Write

    zero2 := zero[interface { // Unused Write
        interface{}
    }]()

    panic([]any{zero1, zero2})
}
//go.mod
module test

go 1.22.3
tooltitude-support commented 4 months ago

Thanks for the feedback. Will take a look at it a bit later today!

tooltitude-support commented 4 months ago

It's a parse error, i.e. interface { interface {}} doesn't seem to be parsed correctly.

tooltitude-support commented 4 months ago

Ok. Fixed it. The fix will be out in 0.75, currently planned to be out around 05/19.

tooltitude-support commented 4 months ago

0.75.0 is out. Please let us know if you have this problem again with it. Closing issue assuming that it's fixed.