mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
compiler: support make()
This commit is contained in:
parent
d8badd9a8d
commit
0f11116040
5 changed files with 70 additions and 3 deletions
|
@ -27,6 +27,11 @@ func isBasicTypeOfKind(typ types.Type, ks ...types.BasicKind) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func isMap(typ types.Type) bool {
|
||||
_, ok := typ.Underlying().(*types.Map)
|
||||
return ok
|
||||
}
|
||||
|
||||
func isByte(typ types.Type) bool {
|
||||
return isBasicTypeOfKind(typ, types.Uint8, types.Int8)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue