New interface to Typer: the function TypeName() returns a more readable type name

This commit is contained in:
2024-05-19 02:23:28 +02:00
parent 9967918418
commit b92b19e1dd
4 changed files with 37 additions and 3 deletions
+4
View File
@@ -62,6 +62,10 @@ func (ls *ListType) String() string {
return ls.ToString(0)
}
func (ls *ListType) TypeName() string {
return "list"
}
func (list *ListType) indexDeepCmp(target any) (index int) {
index = -1
for i, item := range *list {