* Print js-constructor function type names Instead of printing them as a type literal, which is scary. * Use assigned name for functions and classes That otherwise have no name. This helps quick info for javascript a *lot*. Typescript mainly benefits when printing the type of class expressions. * Improve names of functions in binding elements Also fix some fourslash baselines
25 lines
290 B
TypeScript
25 lines
290 B
TypeScript
// @noEmit: true
|
|
// @noImplicitAny: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @Filename: ts.ts
|
|
var o = {
|
|
C: class {
|
|
}
|
|
}
|
|
var oc = new o.C()
|
|
|
|
var V = class {
|
|
}
|
|
var v = new V()
|
|
|
|
var A;
|
|
A = class {
|
|
}
|
|
var a = new A()
|
|
|
|
const {
|
|
B = class { }
|
|
} = ({ B: undefined });
|
|
var b = new B();
|