diff --git a/tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.errors.txt b/tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.errors.txt new file mode 100644 index 00000000000..138a4a84158 --- /dev/null +++ b/tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.errors.txt @@ -0,0 +1,46 @@ +tests/cases/compiler/nestedRecursiveArraysOrObjectsError01.ts(10,9): error TS2322: Type '{ foo: string; jj: number; }[][][]' is not assignable to type 'Style'. + Type '{ foo: string; jj: number; }[][][]' is not assignable to type 'StyleArray'. + Types of property 'pop' are incompatible. + Type '() => { foo: string; jj: number; }[][]' is not assignable to type '() => Style'. + Type '{ foo: string; jj: number; }[][]' is not assignable to type 'Style'. + Type '{ foo: string; jj: number; }[][]' is not assignable to type 'StyleArray'. + Types of property 'pop' are incompatible. + Type '() => { foo: string; jj: number; }[]' is not assignable to type '() => Style'. + Type '{ foo: string; jj: number; }[]' is not assignable to type 'Style'. + Type '{ foo: string; jj: number; }[]' is not assignable to type 'StyleArray'. + Types of property 'pop' are incompatible. + Type '() => { foo: string; jj: number; }' is not assignable to type '() => Style'. + Type '{ foo: string; jj: number; }' is not assignable to type 'Style'. + Object literal may only specify known properties, and 'jj' does not exist in type 'Style'. + + +==== tests/cases/compiler/nestedRecursiveArraysOrObjectsError01.ts (1 errors) ==== + type Style = StyleBase | StyleArray; + interface StyleArray extends Array