Improved type system

This commit is contained in:
Eduard Urbach 2025-02-09 23:52:07 +01:00
parent c0ffddaba8
commit 2e3857622a
Signed by: eduard
GPG key ID: 49226B848C78F6C8
30 changed files with 132 additions and 85 deletions

View file

@ -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()
}