Closed aryx closed 1 year ago
This currently works though:
package Foo
type MyConstraint interface {
MyStruct | MyInterface
}
I think the interface_body tree-sitter rule need to be adjusted. See the spec here: https://go.dev/ref/spec#InterfaceType
Interface type has been simplified and generalized actually. The grammar should actually become smaller after fixing this bug.
this doesnt work either
package Foo
import "bar"
type MyConstraint interface {
bar.MyStruct | bar.MyInterface
}
Here is an example of code that should parse: