This was we don't get noisy baselines just because a different phase of the compiler reported the diagnostic. This helps with Yui's refactoring work to move grammar checks into the type checker.
20 lines
No EOL
1.2 KiB
Text
20 lines
No EOL
1.2 KiB
Text
tests/cases/compiler/gettersAndSettersAccessibility.ts(2,14): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
tests/cases/compiler/gettersAndSettersAccessibility.ts(2,14): error TS2379: Getter and setter accessors do not agree in visibility.
|
|
tests/cases/compiler/gettersAndSettersAccessibility.ts(3,13): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
tests/cases/compiler/gettersAndSettersAccessibility.ts(3,13): error TS2379: Getter and setter accessors do not agree in visibility.
|
|
|
|
|
|
==== tests/cases/compiler/gettersAndSettersAccessibility.ts (4 errors) ====
|
|
class C99 {
|
|
private get Baz():number { return 0; }
|
|
~~~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
~~~
|
|
!!! error TS2379: Getter and setter accessors do not agree in visibility.
|
|
public set Baz(n:number) {} // error - accessors do not agree in visibility
|
|
~~~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
~~~
|
|
!!! error TS2379: Getter and setter accessors do not agree in visibility.
|
|
}
|
|
|