* 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
90 lines
2.6 KiB
Plaintext
90 lines
2.6 KiB
Plaintext
=== tests/cases/compiler/interfaceInheritance.ts ===
|
|
interface I1 {
|
|
>I1 : Symbol(I1, Decl(interfaceInheritance.ts, 0, 0))
|
|
|
|
i1P1: number;
|
|
>i1P1 : Symbol(I1.i1P1, Decl(interfaceInheritance.ts, 0, 14))
|
|
|
|
i1P2(): void;
|
|
>i1P2 : Symbol(I1.i1P2, Decl(interfaceInheritance.ts, 1, 17))
|
|
}
|
|
|
|
interface I2 extends I1 {
|
|
>I2 : Symbol(I2, Decl(interfaceInheritance.ts, 3, 1))
|
|
>I1 : Symbol(I1, Decl(interfaceInheritance.ts, 0, 0))
|
|
|
|
i2P1: string;
|
|
>i2P1 : Symbol(I2.i2P1, Decl(interfaceInheritance.ts, 5, 25))
|
|
}
|
|
|
|
interface I3 {
|
|
>I3 : Symbol(I3, Decl(interfaceInheritance.ts, 7, 1))
|
|
|
|
i2P1: string; // has a member from i2P1, but not from I1
|
|
>i2P1 : Symbol(I3.i2P1, Decl(interfaceInheritance.ts, 9, 14))
|
|
}
|
|
|
|
interface I4 {
|
|
>I4 : Symbol(I4, Decl(interfaceInheritance.ts, 11, 1))
|
|
|
|
one: number;
|
|
>one : Symbol(I4.one, Decl(interfaceInheritance.ts, 13, 14))
|
|
}
|
|
|
|
interface I5 {
|
|
>I5 : Symbol(I5, Decl(interfaceInheritance.ts, 15, 1))
|
|
|
|
one: string;
|
|
>one : Symbol(I5.one, Decl(interfaceInheritance.ts, 17, 14))
|
|
}
|
|
|
|
class C1 implements I2 { // should be an error - it doesn't implement the members of I1
|
|
>C1 : Symbol(C1, Decl(interfaceInheritance.ts, 19, 1))
|
|
>I2 : Symbol(I2, Decl(interfaceInheritance.ts, 3, 1))
|
|
|
|
public i2P1: string;
|
|
>i2P1 : Symbol(C1.i2P1, Decl(interfaceInheritance.ts, 21, 24))
|
|
}
|
|
|
|
var i2: I2;
|
|
>i2 : Symbol(i2, Decl(interfaceInheritance.ts, 25, 3))
|
|
>I2 : Symbol(I2, Decl(interfaceInheritance.ts, 3, 1))
|
|
|
|
var i1: I1;
|
|
>i1 : Symbol(i1, Decl(interfaceInheritance.ts, 26, 3))
|
|
>I1 : Symbol(I1, Decl(interfaceInheritance.ts, 0, 0))
|
|
|
|
var i3: I3;
|
|
>i3 : Symbol(i3, Decl(interfaceInheritance.ts, 27, 3))
|
|
>I3 : Symbol(I3, Decl(interfaceInheritance.ts, 7, 1))
|
|
|
|
i1 = i2;
|
|
>i1 : Symbol(i1, Decl(interfaceInheritance.ts, 26, 3))
|
|
>i2 : Symbol(i2, Decl(interfaceInheritance.ts, 25, 3))
|
|
|
|
i2 = i3; // should be an error - i3 does not implement the members of i1
|
|
>i2 : Symbol(i2, Decl(interfaceInheritance.ts, 25, 3))
|
|
>i3 : Symbol(i3, Decl(interfaceInheritance.ts, 27, 3))
|
|
|
|
var c1: C1;
|
|
>c1 : Symbol(c1, Decl(interfaceInheritance.ts, 31, 3))
|
|
>C1 : Symbol(C1, Decl(interfaceInheritance.ts, 19, 1))
|
|
|
|
var i4: I4;
|
|
>i4 : Symbol(i4, Decl(interfaceInheritance.ts, 33, 3))
|
|
>I4 : Symbol(I4, Decl(interfaceInheritance.ts, 11, 1))
|
|
|
|
var i5: I5;
|
|
>i5 : Symbol(i5, Decl(interfaceInheritance.ts, 34, 3))
|
|
>I5 : Symbol(I5, Decl(interfaceInheritance.ts, 15, 1))
|
|
|
|
i4 = i5; // should be an error
|
|
>i4 : Symbol(i4, Decl(interfaceInheritance.ts, 33, 3))
|
|
>i5 : Symbol(i5, Decl(interfaceInheritance.ts, 34, 3))
|
|
|
|
i5 = i4; // should be an error
|
|
>i5 : Symbol(i5, Decl(interfaceInheritance.ts, 34, 3))
|
|
>i4 : Symbol(i4, Decl(interfaceInheritance.ts, 33, 3))
|
|
|
|
|