Improved type system
This commit is contained in:
parent
c0ffddaba8
commit
2e3857622a
30 changed files with 132 additions and 85 deletions
|
@ -9,6 +9,10 @@ type Array struct {
|
|||
|
||||
// Name returns the type name.
|
||||
func (a *Array) Name() string {
|
||||
if a.Of == Any {
|
||||
return "[]Any"
|
||||
}
|
||||
|
||||
return "[]" + a.Of.Name()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue