Given a type T of any kind, the following lines of code yield a compiler error that points to ~lib/set.ts
function example<T>(ref: T): void {
if (ref instanceof Set<indexof<T>>) { // problem here
}
}
ERROR TS2304: Cannot find name 'T'.
if (ref instanceof Set<indexof<T>>) {
~
in assembly/internal/Reflect.ts(61,38)
Given a type
Tof any kind, the following lines of code yield a compiler error that points to~lib/set.ts