11 lines
297 B
Text
11 lines
297 B
Text
|
==== tests/cases/compiler/getterMissingReturnError.ts (2 errors) ====
|
||
|
class test {
|
||
|
public get p2(){
|
||
|
~~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
~~
|
||
|
!!! Getters must return a value.
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|