14 lines
422 B
Text
14 lines
422 B
Text
=== tests/cases/compiler/destructuringWithNewExpression.ts ===
|
|
class C {
|
|
>C : C, Symbol(C, Decl(destructuringWithNewExpression.ts, 0, 0))
|
|
|
|
x = 0;
|
|
>x : number, Symbol(x, Decl(destructuringWithNewExpression.ts, 0, 9))
|
|
>0 : number
|
|
}
|
|
|
|
var { x } = new C;
|
|
>x : number, Symbol(x, Decl(destructuringWithNewExpression.ts, 4, 5))
|
|
>new C : C
|
|
>C : typeof C, Symbol(C, Decl(destructuringWithNewExpression.ts, 0, 0))
|
|
|