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:
1 parent
dc98aec2ec
commit
f459b2dcdf
44 files changed
+172
-119
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user