mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 14:33:41 +00:00
all: add support for go 1.13
This commit is contained in:
committed by
Ayke van Laethem
parent
6c9e55bd06
commit
17ef7a5c32
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user