mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
Add a number for the "error" type by default
This commit is contained in:
@@ -94,7 +94,7 @@ func (p *Program) AnalyseCallgraph() {
|
||||
// Find all types that are put in an interface.
|
||||
func (p *Program) AnalyseInterfaceConversions() {
|
||||
// Clear, if AnalyseTypes has been called before.
|
||||
p.typesWithoutMethods = map[string]int{"interface{}": 0}
|
||||
p.typesWithoutMethods = map[string]int{"interface{}": 0, "error": 1}
|
||||
p.typesWithMethods = map[string]*InterfaceType{}
|
||||
|
||||
for _, f := range p.Functions {
|
||||
|
||||
Reference in New Issue
Block a user