14 lines
588 B
Text
14 lines
588 B
Text
|
==== tests/cases/compiler/gettersAndSettersAccessibility.ts (4 errors) ====
|
||
|
class C99 {
|
||
|
private get Baz():number { return 0; }
|
||
|
~~~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
~~~
|
||
|
!!! Getter and setter accessors do not agree in visibility.
|
||
|
public set Baz(n:number) {} // error - accessors do not agree in visibility
|
||
|
~~~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
~~~
|
||
|
!!! Getter and setter accessors do not agree in visibility.
|
||
|
}
|
||
|
|