diff --git a/compiler/compiler/types/interface.go b/compiler/compiler/types/interface.go index 7d47700..dc574de 100644 --- a/compiler/compiler/types/interface.go +++ b/compiler/compiler/types/interface.go @@ -16,7 +16,7 @@ type Interface struct { } func (i Interface) Name() string { - return fmt.Sprintf("interface(%s)", i.SourceName) + return fmt.Sprintf("Any") } // SortedRequiredMethods returns a sorted slice of all method names diff --git a/compiler/compiler/types/type.go b/compiler/compiler/types/type.go index ba7ae3a..f25864d 100644 --- a/compiler/compiler/types/type.go +++ b/compiler/compiler/types/type.go @@ -75,7 +75,7 @@ func (s Struct) LLVM() types.Type { } func (s Struct) Name() string { - return fmt.Sprintf("struct(%s)", s.SourceName) + return fmt.Sprintf("Any") } func (s Struct) Zero(block *ir.Block, alloca llvmValue.Value) {