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
As of version 0.642, table types with fields being a generic type are incompatible with the table type {[K]:V} in the new solver, causing type errors when passed to functions such as next, table.create or table.isfrozen. This only appears to occur in strict mode.
--!stricttypegenericTable<T>= {type:T}
localfunctionnop<K,V>(t:{[K]:V}): () endlocalt:genericTable<'any'>= {type='any'}
nop(t) --Type 'genericTable<"any">' could not be converted into '{ [K]: V }'table.clear(t) --Type 'genericTable<"any">' could not be converted into '{ [K]: V }'table.isfrozen(t) --Type 'genericTable<"any">' could not be converted into '{ [K]: V }'next(t) --Type Error: (9,6) Type 'genericTable<"any">' could not be converted into '{+ [K]: V +}'
The text was updated successfully, but these errors were encountered:
As of version 0.642, table types with fields being a generic type are incompatible with the table type
{[K]:V}
in the new solver, causing type errors when passed to functions such asnext
,table.create
ortable.isfrozen
. This only appears to occur in strict mode.The text was updated successfully, but these errors were encountered: