Update type-implicit-table-generics.md

This commit is contained in:
SolarScuffle-Bot 2024-01-03 00:58:48 -10:00
parent b33c150ecf
commit cc66d53381

View file

@ -17,11 +17,11 @@ At an application level, the current workaround for this is to wrap the table in
local foo = {} :: { [F<any>]: G<any> } local foo = {} :: { [F<any>]: G<any> }
-- public -- public
local function <T>getFoo(k: F<T>): G<T> local function getFoo<T>(k: F<T>): G<T>
return foo[k] return foo[k]
end end
local function <T>setFoo(k: F<T>, v: G<T>) local function setFoo<T>(k: F<T>, v: G<T>)
foo[k] = v foo[k] = v
end end