12 lines
288 B
Plaintext
12 lines
288 B
Plaintext
|
==== tests/cases/compiler/commentsOnObjectLiteral4.ts (1 errors) ====
|
||
|
|
||
|
var v = {
|
||
|
/**
|
||
|
* @type {number}
|
||
|
*/
|
||
|
get bar(): number {
|
||
|
~~~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
return this._bar;
|
||
|
}
|
||
|
}
|