2015-02-03 02:36:45 +01:00
|
|
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES6.ts ===
|
2015-01-17 04:15:24 +01:00
|
|
|
function foo() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : () => void
|
2015-01-17 04:15:24 +01:00
|
|
|
|
|
|
|
var obj = {
|
2015-04-16 01:44:20 +02:00
|
|
|
>obj : {}
|
2015-01-17 04:15:24 +01:00
|
|
|
>{ [this.bar]: 0 } : {}
|
|
|
|
|
|
|
|
[this.bar]: 0
|
|
|
|
>this.bar : any
|
|
|
|
>this : any
|
|
|
|
>bar : any
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-01-17 04:15:24 +01:00
|
|
|
}
|
|
|
|
}
|