5353475fce
* Always generate type & symbol baselines * Accept changed shadowed baselines * Accept brand new type and symbol baselines * Allow `getTypeAtLocation` to return undefined in the type writer * Accept baselines which had missing type information * Bind container for dynamically names enum members so they may be printed * Accept type/symbol baselines for enums with computed members * First pass at reducing typeWriter memory overhead * Use generators to allow for type and symbol baselines with no cache * Accept new baselines for tests whose output was fixed by better newline splitting * Hard cap on number of declarations printed, cache declaration print text * handle differing newlines better still to handle RWC newlines * Lower abridging count, accept abridged baselines * Limit max RWC error output size, limit RWC type and symbol baseline input size * Move skip logic into type and symbol baseliner to streamline error handling * Accept removal of empty baselines * Canonicalize path earlier to handle odd paths in input files * Do canonicalization earlier still, also ensure parallel perf profiles for different targets do not trample one another * No need to pathify again
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
=== tests/cases/compiler/propertyAssignment.ts ===
|
|
var foo1: { new ():any; }
|
|
>foo1 : Symbol(foo1, Decl(propertyAssignment.ts, 0, 3))
|
|
|
|
var bar1: { x : number; }
|
|
>bar1 : Symbol(bar1, Decl(propertyAssignment.ts, 1, 3))
|
|
>x : Symbol(x, Decl(propertyAssignment.ts, 1, 11))
|
|
|
|
var foo2: { [index]; } // should be an error, used to be indexer, now it is a computed property
|
|
>foo2 : Symbol(foo2, Decl(propertyAssignment.ts, 3, 3))
|
|
|
|
var bar2: { x : number; }
|
|
>bar2 : Symbol(bar2, Decl(propertyAssignment.ts, 4, 3))
|
|
>x : Symbol(x, Decl(propertyAssignment.ts, 4, 11))
|
|
|
|
var foo3: { ():void; }
|
|
>foo3 : Symbol(foo3, Decl(propertyAssignment.ts, 6, 3))
|
|
|
|
var bar3: { x : number; }
|
|
>bar3 : Symbol(bar3, Decl(propertyAssignment.ts, 7, 3))
|
|
>x : Symbol(x, Decl(propertyAssignment.ts, 7, 11))
|
|
|
|
|
|
|
|
foo1 = bar1; // should be an error
|
|
>foo1 : Symbol(foo1, Decl(propertyAssignment.ts, 0, 3))
|
|
>bar1 : Symbol(bar1, Decl(propertyAssignment.ts, 1, 3))
|
|
|
|
foo2 = bar2;
|
|
>foo2 : Symbol(foo2, Decl(propertyAssignment.ts, 3, 3))
|
|
>bar2 : Symbol(bar2, Decl(propertyAssignment.ts, 4, 3))
|
|
|
|
foo3 = bar3; // should be an error
|
|
>foo3 : Symbol(foo3, Decl(propertyAssignment.ts, 6, 3))
|
|
>bar3 : Symbol(bar3, Decl(propertyAssignment.ts, 7, 3))
|
|
|