* 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
57 lines
1.2 KiB
Text
57 lines
1.2 KiB
Text
=== tests/cases/compiler/aliasBug.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
|
|
|
|
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
|
|
|
|
var p1: provide.Provide; // error here, but should be okay
|
|
>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
|
|
}
|
|
|