29 lines
737 B
Plaintext
29 lines
737 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))
|
||
|
}
|
||
|
|
||
|
@decorator()
|
||
|
>decorator : Symbol(decorator, Decl(a.ts, 0, 0))
|
||
|
|
||
|
class Foo {
|
||
|
>Foo : Symbol(Foo, Decl(a.ts, 2, 1))
|
||
|
|
||
|
public static func(): Foo {
|
||
|
>func : Symbol(Foo.func, Decl(a.ts, 5, 11))
|
||
|
>Foo : Symbol(Foo, Decl(a.ts, 2, 1))
|
||
|
|
||
|
return new Foo();
|
||
|
>Foo : Symbol(Foo, Decl(a.ts, 2, 1))
|
||
|
}
|
||
|
}
|
||
|
Foo.func();
|
||
|
>Foo.func : Symbol(Foo.func, Decl(a.ts, 5, 11))
|
||
|
>Foo : Symbol(Foo, Decl(a.ts, 2, 1))
|
||
|
>func : Symbol(Foo.func, Decl(a.ts, 5, 11))
|
||
|
|