* 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
99 lines
1.9 KiB
Plaintext
99 lines
1.9 KiB
Plaintext
=== tests/cases/compiler/aliasErrors.ts ===
|
|
module foo {
|
|
>foo : typeof foo
|
|
|
|
export class Provide {
|
|
>Provide : Provide
|
|
}
|
|
export module bar { export module baz {export class boo {}}}
|
|
>bar : typeof bar
|
|
>baz : typeof baz
|
|
>boo : boo
|
|
}
|
|
|
|
import provide = foo;
|
|
>provide : typeof foo
|
|
>foo : typeof foo
|
|
|
|
import booz = foo.bar.baz;
|
|
>booz : typeof booz
|
|
>foo : typeof foo
|
|
>bar : typeof provide.bar
|
|
>baz : typeof booz
|
|
|
|
import beez = foo.bar;
|
|
>beez : typeof provide.bar
|
|
>foo : typeof foo
|
|
>bar : typeof provide.bar
|
|
|
|
import m = no;
|
|
>m : any
|
|
>no : No type information available!
|
|
|
|
import m2 = no.mod;
|
|
>m2 : any
|
|
>no : No type information available!
|
|
>mod : No type information available!
|
|
|
|
import n = 5;
|
|
>n : any
|
|
> : No type information available!
|
|
>5 : 5
|
|
|
|
import o = "s";
|
|
>o : any
|
|
> : No type information available!
|
|
>"s" : "s"
|
|
|
|
import q = null;
|
|
>q : any
|
|
> : No type information available!
|
|
>null : null
|
|
|
|
import r = undefined;
|
|
>r : any
|
|
>undefined : No type information available!
|
|
|
|
|
|
var p = new provide.Provide();
|
|
>p : provide.Provide
|
|
>new provide.Provide() : provide.Provide
|
|
>provide.Provide : typeof provide.Provide
|
|
>provide : typeof foo
|
|
>Provide : typeof provide.Provide
|
|
|
|
function use() {
|
|
>use : () => void
|
|
|
|
beez.baz.boo;
|
|
>beez.baz.boo : typeof booz.boo
|
|
>beez.baz : typeof booz
|
|
>beez : typeof provide.bar
|
|
>baz : typeof booz
|
|
>boo : typeof booz.boo
|
|
|
|
var p1: provide.Provide;
|
|
>p1 : provide.Provide
|
|
>provide : any
|
|
>Provide : provide.Provide
|
|
|
|
var p2: foo.Provide;
|
|
>p2 : provide.Provide
|
|
>foo : any
|
|
>Provide : provide.Provide
|
|
|
|
var p3:booz.bar;
|
|
>p3 : any
|
|
>booz : any
|
|
>bar : No type information available!
|
|
|
|
var p22 = new provide.Provide();
|
|
>p22 : provide.Provide
|
|
>new provide.Provide() : provide.Provide
|
|
>provide.Provide : typeof provide.Provide
|
|
>provide : typeof foo
|
|
>Provide : typeof provide.Provide
|
|
}
|
|
|
|
|