6a777ff6b3
* Add declaration emit error and checking for circularly referential unions produced by recursive conditionals * Allow indexed accesses to produce alias symbols on types * Add test that still triggers the declaration emit error * Fix spelling
15 lines
807 B
Plaintext
15 lines
807 B
Plaintext
=== tests/cases/compiler/arrayFlatNoCrashInferenceDeclarations.ts ===
|
|
function foo<T>(arr: T[], depth: number) {
|
|
>foo : Symbol(foo, Decl(arrayFlatNoCrashInferenceDeclarations.ts, 0, 0))
|
|
>T : Symbol(T, Decl(arrayFlatNoCrashInferenceDeclarations.ts, 0, 13))
|
|
>arr : Symbol(arr, Decl(arrayFlatNoCrashInferenceDeclarations.ts, 0, 16))
|
|
>T : Symbol(T, Decl(arrayFlatNoCrashInferenceDeclarations.ts, 0, 13))
|
|
>depth : Symbol(depth, Decl(arrayFlatNoCrashInferenceDeclarations.ts, 0, 25))
|
|
|
|
return arr.flat(depth);
|
|
>arr.flat : Symbol(Array.flat, Decl(lib.es2019.array.d.ts, --, --))
|
|
>arr : Symbol(arr, Decl(arrayFlatNoCrashInferenceDeclarations.ts, 0, 16))
|
|
>flat : Symbol(Array.flat, Decl(lib.es2019.array.d.ts, --, --))
|
|
>depth : Symbol(depth, Decl(arrayFlatNoCrashInferenceDeclarations.ts, 0, 25))
|
|
}
|