2015-02-03 02:36:45 +01:00
|
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames19_ES6.ts(3,10): error TS2331: 'this' cannot be referenced in a module body.
|
2015-01-17 04:15:24 +01:00
|
|
|
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames19_ES6.ts (1 errors) ====
|
2015-01-17 04:15:24 +01:00
|
|
|
module M {
|
|
|
|
var obj = {
|
|
|
|
[this.bar]: 0
|
|
|
|
~~~~
|
|
|
|
!!! error TS2331: 'this' cannot be referenced in a module body.
|
|
|
|
}
|
|
|
|
}
|