Исходники и презентации
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
// generics restriction
|
||||
type _ interface {
|
||||
int | ~int // compilation error
|
||||
}
|
||||
|
||||
type _ interface {
|
||||
interface{ int } | interface{ ~int } // ok
|
||||
}
|
||||
|
||||
type _ interface {
|
||||
int | interface{ ~int } // ok
|
||||
}
|
||||
Reference in New Issue
Block a user