chore: class new is now generic

This commit is contained in:
Alexander Courtis
2024-10-28 14:00:52 +11:00
parent 5647bc3c7c
commit 9b365279df
18 changed files with 26 additions and 24 deletions

View File

@@ -31,7 +31,7 @@ function FileNode:create(explorer, parent, absolute_path, name, fs_stat)
extension = string.match(name, ".?[^.]+%.(.*)") or "",
}
o = self:new(o) --[[@as FileNode]]
o = self:new(o)
return o
end