Files

15 lines
211 B
Go
Raw Permalink Normal View History

package main
// generics restriction
type _ interface {
int | ~int // compilation error
}
type _ interface {
interface{ int } | interface{ ~int } // ok
}
type _ interface {
int | interface{ ~int } // ok
}