35 lines
No EOL
2 KiB
Text
35 lines
No EOL
2 KiB
Text
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
|
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,5): error TS2304: Cannot find name 'public'.
|
|
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,12): error TS1005: ';' expected.
|
|
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,12): error TS1146: Declaration expected.
|
|
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,17): error TS2304: Cannot find name 'get'.
|
|
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,21): error TS1005: ';' expected.
|
|
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,21): error TS2304: Cannot find name 'accessor'.
|
|
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,32): error TS1005: ';' expected.
|
|
tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(5,1): error TS1128: Declaration or statement expected.
|
|
|
|
|
|
==== tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts (9 errors) ====
|
|
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
|
|
|
class C {
|
|
public @dec get accessor() { return 1; }
|
|
~~~~~~
|
|
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
|
~~~~~~
|
|
!!! error TS2304: Cannot find name 'public'.
|
|
~
|
|
!!! error TS1005: ';' expected.
|
|
~~~~
|
|
!!! error TS1146: Declaration expected.
|
|
~~~
|
|
!!! error TS2304: Cannot find name 'get'.
|
|
~~~~~~~~
|
|
!!! error TS1005: ';' expected.
|
|
~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'accessor'.
|
|
~
|
|
!!! error TS1005: ';' expected.
|
|
}
|
|
~
|
|
!!! error TS1128: Declaration or statement expected. |