Skip to content

Commit

Permalink
Better warning about the generic function that's skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Dec 12, 2023
1 parent 46c3191 commit 069cac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (c *compiler) generateFunctypes(p *packages.Package, f *ast.File, colors ma
fn := c.prog.FuncValue(obj)
if fn.TypeParams() != nil {
// TODO: support generics. Generate type func/closure type information for each instance from: instances := c.generics[fn]
log.Printf("warning: cannot register runtime type information for generic function %s", d.Name)
log.Printf("warning: cannot register runtime type information for generic function %s", fn)
continue
} else {
scope := &funcscope{vars: map[string]*funcvar{}}
Expand Down

0 comments on commit 069cac4

Please sign in to comment.