alibaba/IOC-golang

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

Aperta

#116 aperta il 13 ago 2022

 (0 commenti) (0 reazioni) (0 assegnatari)Go (123 fork)auto 404
buggood first issue

Metriche repository

Star
 (1230 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor