Hi, Here's a case of "type dissonance" I don't understand. Why should it be?
https://github.com/syntelos/go-sort An interface type not passing through a static public package function that employs the interface. type Comparable interface { Compare(Comparable) int } func Sort(array []Comparable) ([]Comparable) With go-1.20.12: $ go test # github.com/syntelos/go-sort [github.com/syntelos/go-sort.test] ./sort_test.go:61:7: cannot use vector (variable of type TestList) as []Comparable value in argument to Sort FAIL github.com/syntelos/go-sort [build failed] Any comments? Best, John -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAD6mcO9J-6bruuKTke%3DcOm8ZFRM%2BvSqEiWr62zTBGPeX0r3XLA%40mail.gmail.com.