a15030ff6f
* fix(35050): fix decorated block-scoped class emit * Only use internal name when targeting ES5/3 Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
33 lines
824 B
Plaintext
33 lines
824 B
Plaintext
=== tests/cases/conformance/decorators/class/a.ts ===
|
|
function decorator() {
|
|
>decorator : Symbol(decorator, Decl(a.ts, 0, 0))
|
|
|
|
return (target: new (...args: any[]) => any) => {}
|
|
>target : Symbol(target, Decl(a.ts, 1, 12))
|
|
>args : Symbol(args, Decl(a.ts, 1, 25))
|
|
}
|
|
|
|
try {
|
|
@decorator()
|
|
>decorator : Symbol(decorator, Decl(a.ts, 0, 0))
|
|
|
|
class Foo {
|
|
>Foo : Symbol(Foo, Decl(a.ts, 4, 5))
|
|
|
|
public static func(): Foo {
|
|
>func : Symbol(Foo.func, Decl(a.ts, 6, 15))
|
|
>Foo : Symbol(Foo, Decl(a.ts, 4, 5))
|
|
|
|
return new Foo();
|
|
>Foo : Symbol(Foo, Decl(a.ts, 4, 5))
|
|
}
|
|
}
|
|
Foo.func();
|
|
>Foo.func : Symbol(Foo.func, Decl(a.ts, 6, 15))
|
|
>Foo : Symbol(Foo, Decl(a.ts, 4, 5))
|
|
>func : Symbol(Foo.func, Decl(a.ts, 6, 15))
|
|
}
|
|
catch (e) {}
|
|
>e : Symbol(e, Decl(a.ts, 13, 7))
|
|
|