12 lines
288 B
Text
12 lines
288 B
Text
|
==== 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;
|
||
|
}
|
||
|
}
|