TypeScript/tests/baselines/reference/typeOfOnTypeArg.errors.txt
2014-09-11 16:11:08 -07:00

11 lines
294 B
Plaintext

==== tests/cases/compiler/typeOfOnTypeArg.ts (1 errors) ====
var A = { '': 3 };
function fill<B extends typeof A>(f: B) {
}
fill(32);
~~
!!! error TS2345: Argument of type 'number' is not assignable to parameter of type '{ '': number; }'.