From 751bceb94ec2bd8d989c3f2fd7eb3f5d6b02428c Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 10 Jul 2018 14:55:33 -0700 Subject: [PATCH] Accepted baselines. --- ...RecursiveArraysOrObjectsError01.errors.txt | 46 +++++++++++++++++++ .../nestedRecursiveArraysOrObjectsError01.js | 23 ++++++++++ ...tedRecursiveArraysOrObjectsError01.symbols | 33 +++++++++++++ ...estedRecursiveArraysOrObjectsError01.types | 40 ++++++++++++++++ 4 files changed, 142 insertions(+) create mode 100644 tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.errors.txt create mode 100644 tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.js create mode 100644 tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.symbols create mode 100644 tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.types 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