|
|
|
@@ -1,42 +1,42 @@
|
|
|
|
|
=== tests/cases/conformance/types/rest/objectRest.ts ===
|
|
|
|
|
var o = { a: 1, b: 'no' }
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
>a : Symbol(a, Decl(objectRest.ts, 0, 9))
|
|
|
|
|
>b : Symbol(b, Decl(objectRest.ts, 0, 15))
|
|
|
|
|
|
|
|
|
|
var { ...clone } = o;
|
|
|
|
|
>clone : Symbol(clone, Decl(objectRest.ts, 1, 5))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
|
|
|
|
|
var { a, ...justB } = o;
|
|
|
|
|
>a : Symbol(a, Decl(objectRest.ts, 2, 5), Decl(objectRest.ts, 3, 5))
|
|
|
|
|
>justB : Symbol(justB, Decl(objectRest.ts, 2, 8))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
|
|
|
|
|
var { a, b: renamed, ...empty } = o;
|
|
|
|
|
>a : Symbol(a, Decl(objectRest.ts, 2, 5), Decl(objectRest.ts, 3, 5))
|
|
|
|
|
>b : Symbol(b, Decl(objectRest.ts, 0, 15))
|
|
|
|
|
>renamed : Symbol(renamed, Decl(objectRest.ts, 3, 8), Decl(objectRest.ts, 4, 5), Decl(objectRest.ts, 5, 5), Decl(objectRest.ts, 9, 5))
|
|
|
|
|
>empty : Symbol(empty, Decl(objectRest.ts, 3, 20))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
|
|
|
|
|
var { ['b']: renamed, ...justA } = o;
|
|
|
|
|
>'b' : Symbol(renamed, Decl(objectRest.ts, 3, 8), Decl(objectRest.ts, 4, 5), Decl(objectRest.ts, 5, 5), Decl(objectRest.ts, 9, 5))
|
|
|
|
|
>renamed : Symbol(renamed, Decl(objectRest.ts, 3, 8), Decl(objectRest.ts, 4, 5), Decl(objectRest.ts, 5, 5), Decl(objectRest.ts, 9, 5))
|
|
|
|
|
>justA : Symbol(justA, Decl(objectRest.ts, 4, 21), Decl(objectRest.ts, 5, 19), Decl(objectRest.ts, 6, 31))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
|
|
|
|
|
var { 'b': renamed, ...justA } = o;
|
|
|
|
|
>renamed : Symbol(renamed, Decl(objectRest.ts, 3, 8), Decl(objectRest.ts, 4, 5), Decl(objectRest.ts, 5, 5), Decl(objectRest.ts, 9, 5))
|
|
|
|
|
>justA : Symbol(justA, Decl(objectRest.ts, 4, 21), Decl(objectRest.ts, 5, 19), Decl(objectRest.ts, 6, 31))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
|
|
|
|
|
var { b: { '0': n, '1': oooo }, ...justA } = o;
|
|
|
|
|
>b : Symbol(b, Decl(objectRest.ts, 0, 15))
|
|
|
|
|
>n : Symbol(n, Decl(objectRest.ts, 6, 10))
|
|
|
|
|
>oooo : Symbol(oooo, Decl(objectRest.ts, 6, 18))
|
|
|
|
|
>justA : Symbol(justA, Decl(objectRest.ts, 4, 21), Decl(objectRest.ts, 5, 19), Decl(objectRest.ts, 6, 31))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
|
|
|
|
|
let o2 = { c: 'terrible idea?', d: 'yes' };
|
|
|
|
|
>o2 : Symbol(o2, Decl(objectRest.ts, 8, 3))
|
|
|
|
@@ -138,41 +138,63 @@ class Removable {
|
|
|
|
|
remainder: string;
|
|
|
|
|
>remainder : Symbol(Removable.remainder, Decl(objectRest.ts, 27, 20))
|
|
|
|
|
}
|
|
|
|
|
interface I {
|
|
|
|
|
>I : Symbol(I, Decl(objectRest.ts, 29, 1))
|
|
|
|
|
|
|
|
|
|
m(): void;
|
|
|
|
|
>m : Symbol(I.m, Decl(objectRest.ts, 30, 13))
|
|
|
|
|
|
|
|
|
|
removed: string;
|
|
|
|
|
>removed : Symbol(I.removed, Decl(objectRest.ts, 31, 14))
|
|
|
|
|
|
|
|
|
|
remainder: string;
|
|
|
|
|
>remainder : Symbol(I.remainder, Decl(objectRest.ts, 32, 20))
|
|
|
|
|
}
|
|
|
|
|
var removable = new Removable();
|
|
|
|
|
>removable : Symbol(removable, Decl(objectRest.ts, 30, 3))
|
|
|
|
|
>removable : Symbol(removable, Decl(objectRest.ts, 35, 3))
|
|
|
|
|
>Removable : Symbol(Removable, Decl(objectRest.ts, 18, 35))
|
|
|
|
|
|
|
|
|
|
var { removed, ...removableRest } = removable;
|
|
|
|
|
>removed : Symbol(removed, Decl(objectRest.ts, 31, 5))
|
|
|
|
|
>removableRest : Symbol(removableRest, Decl(objectRest.ts, 31, 14))
|
|
|
|
|
>removable : Symbol(removable, Decl(objectRest.ts, 30, 3))
|
|
|
|
|
>removed : Symbol(removed, Decl(objectRest.ts, 36, 5), Decl(objectRest.ts, 38, 5))
|
|
|
|
|
>removableRest : Symbol(removableRest, Decl(objectRest.ts, 36, 14))
|
|
|
|
|
>removable : Symbol(removable, Decl(objectRest.ts, 35, 3))
|
|
|
|
|
|
|
|
|
|
var i: I = removable;
|
|
|
|
|
>i : Symbol(i, Decl(objectRest.ts, 37, 3))
|
|
|
|
|
>I : Symbol(I, Decl(objectRest.ts, 29, 1))
|
|
|
|
|
>removable : Symbol(removable, Decl(objectRest.ts, 35, 3))
|
|
|
|
|
|
|
|
|
|
var { removed, ...removableRest2 } = i;
|
|
|
|
|
>removed : Symbol(removed, Decl(objectRest.ts, 36, 5), Decl(objectRest.ts, 38, 5))
|
|
|
|
|
>removableRest2 : Symbol(removableRest2, Decl(objectRest.ts, 38, 14))
|
|
|
|
|
>i : Symbol(i, Decl(objectRest.ts, 37, 3))
|
|
|
|
|
|
|
|
|
|
let computed = 'b';
|
|
|
|
|
>computed : Symbol(computed, Decl(objectRest.ts, 33, 3))
|
|
|
|
|
>computed : Symbol(computed, Decl(objectRest.ts, 40, 3))
|
|
|
|
|
|
|
|
|
|
let computed2 = 'a';
|
|
|
|
|
>computed2 : Symbol(computed2, Decl(objectRest.ts, 34, 3))
|
|
|
|
|
>computed2 : Symbol(computed2, Decl(objectRest.ts, 41, 3))
|
|
|
|
|
|
|
|
|
|
var { [computed]: stillNotGreat, [computed2]: soSo, ...o } = o;
|
|
|
|
|
>computed : Symbol(computed, Decl(objectRest.ts, 33, 3))
|
|
|
|
|
>stillNotGreat : Symbol(stillNotGreat, Decl(objectRest.ts, 35, 5))
|
|
|
|
|
>computed2 : Symbol(computed2, Decl(objectRest.ts, 34, 3))
|
|
|
|
|
>soSo : Symbol(soSo, Decl(objectRest.ts, 35, 32))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>computed : Symbol(computed, Decl(objectRest.ts, 40, 3))
|
|
|
|
|
>stillNotGreat : Symbol(stillNotGreat, Decl(objectRest.ts, 42, 5))
|
|
|
|
|
>computed2 : Symbol(computed2, Decl(objectRest.ts, 41, 3))
|
|
|
|
|
>soSo : Symbol(soSo, Decl(objectRest.ts, 42, 32))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
|
|
|
|
|
({ [computed]: stillNotGreat, [computed2]: soSo, ...o } = o);
|
|
|
|
|
>computed : Symbol(computed, Decl(objectRest.ts, 33, 3))
|
|
|
|
|
>stillNotGreat : Symbol(stillNotGreat, Decl(objectRest.ts, 35, 5))
|
|
|
|
|
>computed2 : Symbol(computed2, Decl(objectRest.ts, 34, 3))
|
|
|
|
|
>soSo : Symbol(soSo, Decl(objectRest.ts, 35, 32))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 35, 51))
|
|
|
|
|
>computed : Symbol(computed, Decl(objectRest.ts, 40, 3))
|
|
|
|
|
>stillNotGreat : Symbol(stillNotGreat, Decl(objectRest.ts, 42, 5))
|
|
|
|
|
>computed2 : Symbol(computed2, Decl(objectRest.ts, 41, 3))
|
|
|
|
|
>soSo : Symbol(soSo, Decl(objectRest.ts, 42, 32))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
>o : Symbol(o, Decl(objectRest.ts, 0, 3), Decl(objectRest.ts, 42, 51))
|
|
|
|
|
|
|
|
|
|
var noContextualType = ({ aNumber = 12, ...notEmptyObject }) => aNumber + notEmptyObject['anythingGoes'];
|
|
|
|
|
>noContextualType : Symbol(noContextualType, Decl(objectRest.ts, 38, 3))
|
|
|
|
|
>aNumber : Symbol(aNumber, Decl(objectRest.ts, 38, 25))
|
|
|
|
|
>notEmptyObject : Symbol(notEmptyObject, Decl(objectRest.ts, 38, 39))
|
|
|
|
|
>aNumber : Symbol(aNumber, Decl(objectRest.ts, 38, 25))
|
|
|
|
|
>notEmptyObject : Symbol(notEmptyObject, Decl(objectRest.ts, 38, 39))
|
|
|
|
|
>noContextualType : Symbol(noContextualType, Decl(objectRest.ts, 45, 3))
|
|
|
|
|
>aNumber : Symbol(aNumber, Decl(objectRest.ts, 45, 25))
|
|
|
|
|
>notEmptyObject : Symbol(notEmptyObject, Decl(objectRest.ts, 45, 39))
|
|
|
|
|
>aNumber : Symbol(aNumber, Decl(objectRest.ts, 45, 25))
|
|
|
|
|
>notEmptyObject : Symbol(notEmptyObject, Decl(objectRest.ts, 45, 39))
|
|
|
|
|
|
|
|
|
|