compiler: make main function normally to compatible multiple main functions in testing mode
This commit is contained in:
@@ -554,9 +554,6 @@ func FuncName(pkg *types.Package, name string, recv *types.Var, org bool) string
|
||||
return PathOf(pkg) + "." + tName + "." + name
|
||||
}
|
||||
ret := FullName(pkg, name)
|
||||
if ret == "main.main" {
|
||||
ret = "main"
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user