22 lines
311 B
Go
22 lines
311 B
Go
package main
|
|
|
|
type _ interface {
|
|
[]int | comparable // compilation error
|
|
}
|
|
|
|
type _ interface {
|
|
string | error // compilation error
|
|
}
|
|
|
|
type _ interface {
|
|
string | interface{ Do() } // compilation error
|
|
}
|
|
|
|
type _ interface {
|
|
string | interface{ int } // ok
|
|
}
|
|
|
|
type _ interface {
|
|
string | interface{} // ok
|
|
}
|