2019-02-07 16:10:34 +01:00
|
|
|
// @lib: es2019
|
2018-08-01 08:44:53 +02:00
|
|
|
|
|
|
|
const array: number[] = [];
|
|
|
|
const readonlyArray: ReadonlyArray<number> = [];
|
|
|
|
array.flatMap((): ReadonlyArray<number> => []); // ok
|
|
|
|
readonlyArray.flatMap((): ReadonlyArray<number> => []); // ok
|