diff options
Diffstat (limited to 'server/src/core/diagnostics.lua')
-rw-r--r-- | server/src/core/diagnostics.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index 57703bea..7f47b548 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -220,6 +220,12 @@ function mt:searchRedundantParameters(callback) end local max = #func.args local passed = #args + -- function m.open() end + -- m:open() + -- 这种写法不算错 + if passed == 1 and source:get 'has object' then + return + end for i = max + 1, passed do local extra = args[i] callback(extra.start, extra.finish, max, passed) |