ws-cleanup-types: archive, audio, data, font, image, layered, music, playlist, subtitle, vector, video: annotations, casts, one value per re-assignment where the solver loses the type

This commit is contained in:
4DBug committed 2026-10-31 11:00:25 -05:00
1 parent dc98aec2ec
commit f459b2dcdf
44 files changed
+172 -119

No files matched your search

+2 -2
View File
@@ -137,11 +137,11 @@ function Ini.decode(r: Bytes.Reader, opts: DecodeOptions?): (any, Err.Err?)
seenKeys[cur] = seen
end
if seen[key :: string] and o.strict then
return nil, Err.new(Err.CORRUPT, "duplicate key " .. key, lineStart)
return nil, Err.new(Err.CORRUPT, "duplicate key " .. (key :: string), lineStart)
end
seen[key :: string] = true
if cur == root and type(root[key]) == "table" then
return nil, Err.new(Err.CORRUPT, "top-level key " .. key .. " has the name of a section", lineStart)
return nil, Err.new(Err.CORRUPT, "top-level key " .. (key :: string) .. " has the name of a section", lineStart)
end
Types.set(cur, key, value)
lastKey, lastIndent, lastTable = key, indent, cur