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
openSystem.Collections.GenerictypeTable<'K,'Vwhen'K:equality>()=letdic=new Dictionary<'K,'V>()letaddKeyValue key value =
dic.[key]<- value
member_.add key value =
addKeyValue key value
A workaround is to move internal functions of the class outside the class and inline them:
openSystem.Collections.Genericlet inlineprivateaddKeyValue(dic:Dictionary<'K,'V>)key value =// internal function moved here
dic.[key]<- value
typeTable<'K,'Vwhen'K:equality>()=letdic=new Dictionary<'K,'V>()memberthis.Add(key,value)=
addKeyValue dic key value
This generates invalid typescript:
see REPL
The generic parameters
K
andV
appear twice each in:export function Table$2__addKeyValue<K, V, K, V>(this$: Table$2<K, V>, key: K, value: V): void {
fable 4.21
The text was updated successfully, but these errors were encountered: