Fixed segfault in Type.ToString
This commit is contained in:
parent
6c02e45e2e
commit
16fe6afdff
@ -85,6 +85,11 @@ func (member TypeSectionMember) ToString (indent int, breakLine bool) (output st
|
||||
}
|
||||
|
||||
func (what Type) ToString () (output string) {
|
||||
if what.kind == TypeKindNil {
|
||||
output += "NIL-TYPE"
|
||||
return
|
||||
}
|
||||
|
||||
if what.kind == TypeKindBasic {
|
||||
output += what.name.ToString()
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user