summaryrefslogtreecommitdiff
path: root/xmake/core/base/table.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/table.lua')
-rw-r--r--xmake/core/base/table.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua
index 7427f3a53..746947bd9 100644
--- a/xmake/core/base/table.lua
+++ b/xmake/core/base/table.lua
@@ -345,7 +345,7 @@ function table.inherit2(self, clasz)
-- init instance
for k, v in pairs(clasz) do
- if type(v) == "function" then
+ if type(v) == "function" and self[k] == nil then
self[k] = v
end
end