2015-04-16 02:22:19 +02:00
|
|
|
=== tests/cases/compiler/destructuringWithNewExpression.ts ===
|
|
|
|
class C {
|
2015-04-16 03:12:49 +02:00
|
|
|
>C : C
|
2015-04-16 02:22:19 +02:00
|
|
|
|
|
|
|
x = 0;
|
2015-04-16 03:12:49 +02:00
|
|
|
>x : number
|
2015-04-16 02:22:19 +02:00
|
|
|
>0 : number
|
|
|
|
}
|
|
|
|
|
|
|
|
var { x } = new C;
|
2015-04-16 03:12:49 +02:00
|
|
|
>x : number
|
2015-04-16 02:22:19 +02:00
|
|
|
>new C : C
|
2015-04-16 03:12:49 +02:00
|
|
|
>C : typeof C
|
2015-04-16 02:22:19 +02:00
|
|
|
|