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