mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 20:13:40 +00:00
reflect: allow nil rawType to call Kind()
This commit is contained in:
committed by
Damian Gryski
parent
3a3de8a778
commit
e4ef6f85ac
@@ -473,6 +473,9 @@ func (t *rawType) String() string {
|
||||
}
|
||||
|
||||
func (t *rawType) Kind() Kind {
|
||||
if t == nil {
|
||||
return Invalid
|
||||
}
|
||||
return Kind(t.meta & kindMask)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user