all: add support for go 1.13

This commit is contained in:
Jaden Weiss
2019-09-22 12:31:05 -04:00
committed by Ayke van Laethem
parent 6c9e55bd06
commit 17ef7a5c32
8 changed files with 79 additions and 15 deletions
+7
View File
@@ -398,6 +398,13 @@ func (t Type) AssignableTo(u Type) bool {
return false
}
func (t Type) Implements(u Type) bool {
if t.Kind() != Interface {
panic("reflect: non-interface type passed to Type.Implements")
}
return u.AssignableTo(t)
}
// Comparable returns whether values of this type can be compared to each other.
func (t Type) Comparable() bool {
switch t.Kind() {