mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
402 B
TypeScript
20 lines
402 B
TypeScript
//// [tests/cases/conformance/functions/strictBindCallApply2.ts] ////
|
|
|
|
//// [strictBindCallApply2.ts]
|
|
// Repro from #32964
|
|
|
|
interface Foo { blub: string };
|
|
function fn(this: Foo) {}
|
|
|
|
type Test = ThisParameterType<typeof fn>;
|
|
|
|
const fb = fn.bind({ blub: "blub" });
|
|
|
|
|
|
//// [strictBindCallApply2.js]
|
|
"use strict";
|
|
// Repro from #32964
|
|
;
|
|
function fn() { }
|
|
const fb = fn.bind({ blub: "blub" });
|