hide evolved.id implementation details from types

This commit is contained in:
BlackMATov
2025-01-24 11:24:52 +07:00
parent aab21f9105
commit 3fb7dbae25
3 changed files with 45 additions and 28 deletions

View File

@@ -4957,9 +4957,14 @@ end
do
local id = evo.pack(7, 3)
assert(id == 0x300007)
local index, version = evo.unpack(0x500004)
assert(index == 4 and version == 5)
local index, version = evo.unpack(id)
assert(index == 7 and version == 3)
end
do
local id = evo.pack(0xFFFFF, 0x7FF)
local index, version = evo.unpack(id)
assert(index == 0xFFFFF and version == 0x7FF)
end
do