alibaba/IOC-golang

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

Open

#116 opened on Aug 13, 2022

 (0 comments) (0 reactions) (0 assignees)Go (123 forks)auto 404
buggood first issue

Repository metrics

Stars
 (1,230 stars)
PR merge metrics
 (PR metrics pending)

Description

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