* 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
30 lines
913 B
Plaintext
30 lines
913 B
Plaintext
=== tests/cases/compiler/generics4.ts ===
|
|
class C<T> { private x: T; }
|
|
>C : Symbol(C, Decl(generics4.ts, 0, 0))
|
|
>T : Symbol(T, Decl(generics4.ts, 0, 8))
|
|
>x : Symbol(C.x, Decl(generics4.ts, 0, 12))
|
|
>T : Symbol(T, Decl(generics4.ts, 0, 8))
|
|
|
|
interface X { f(): string; }
|
|
>X : Symbol(X, Decl(generics4.ts, 0, 28))
|
|
>f : Symbol(X.f, Decl(generics4.ts, 1, 13))
|
|
|
|
interface Y { f(): boolean; }
|
|
>Y : Symbol(Y, Decl(generics4.ts, 1, 28))
|
|
>f : Symbol(Y.f, Decl(generics4.ts, 2, 13))
|
|
|
|
var a: C<X>;
|
|
>a : Symbol(a, Decl(generics4.ts, 3, 3))
|
|
>C : Symbol(C, Decl(generics4.ts, 0, 0))
|
|
>X : Symbol(X, Decl(generics4.ts, 0, 28))
|
|
|
|
var b: C<Y>;
|
|
>b : Symbol(b, Decl(generics4.ts, 4, 3))
|
|
>C : Symbol(C, Decl(generics4.ts, 0, 0))
|
|
>Y : Symbol(Y, Decl(generics4.ts, 1, 28))
|
|
|
|
a = b; // Not ok - return types of "f" are different
|
|
>a : Symbol(a, Decl(generics4.ts, 3, 3))
|
|
>b : Symbol(b, Decl(generics4.ts, 4, 3))
|
|
|