compiler: disallow unnamed parameters for exported methods
This commit is contained in:
parent
d84f8940f1
commit
94f6a9ee61
3 changed files with 96 additions and 0 deletions
|
@ -2106,6 +2106,9 @@ func (c *codegen) compile(info *buildInfo, pkg *packages.Package) error {
|
|||
c.analyzePkgOrder()
|
||||
c.fillDocumentInfo()
|
||||
funUsage := c.analyzeFuncUsage()
|
||||
if c.prog.Err != nil {
|
||||
return c.prog.Err
|
||||
}
|
||||
|
||||
// Bring all imported functions into scope.
|
||||
c.ForEachFile(c.resolveFuncDecls)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue