alibaba/IOC-golang

[Bug] iocli generate proxy method with '_' param causes compile bugs

Offen

#116 geöffnet am 13.08.2022

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (123 Forks)auto 404
buggood first issue

Repository-Metriken

Stars
 (1.230 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

As for method:

func (d *dynamicPluginServiceImpl) Update(_ context.Context){

}

the param is omited, but in zz_generated.ioc.go :

func (d *dynamicPluginServiceImpl_) Update(_ contextx.Context) {
	return d.Update_(_, req) // compile error
}

The proxy struct stub param should not include omited param, and should generated a new var. Although it's useless.

Contributor Guide