You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scratch.tl:5:14: types are not comparable for equality: Value (unresolved generic) and string
but removing the assert makes it check just fine.
local ivalues: function<Value>({any:Value}): function(): Value
local function _list_contains_string(list: {string}, str: string): boolean
- for val in ivalues(assert(list)) do+ for val in ivalues(list) do
if val == str then
return true
end
end
return false
end
The text was updated successfully, but these errors were encountered:
Given the signature of this
ivalues
function and attempting to use it withassert
call as an argument causes an unresolved generic errorbut removing the
assert
makes it check just fine.The text was updated successfully, but these errors were encountered: