// @strict: true declare function g(a: void): void; let gg: () => void = g; interface Obj { method(value: T): void; } declare const o: Obj; gg = o.method;