* Only enable special assignability rule on string index signatures to 'any'. * Accepted baselines. * Added test. * Accepted baselines. * Renamed test files. * Add non-erroring version of bclas'subClassThisTypeAssignable01.ts' * Accepted baselines. Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
9 lines
196 B
Plaintext
9 lines
196 B
Plaintext
=== tests/cases/compiler/functionAssignabilityWithArrayLike01.ts ===
|
|
function func() {}
|
|
>func : () => void
|
|
|
|
const array: ArrayLike<any> = func;
|
|
>array : ArrayLike<any>
|
|
>func : () => void
|
|
|