1# Private '#' identifiers are not supported 2 3Rule ``arkts-no-private-identifiers`` 4 5**Severity: error** 6 7ArkTS does not use private identifiers starting with the symbol ``#``. Use 8the keyword ``private`` instead. 9 10 11## TypeScript 12 13 14``` 15 16 /* 17 * Such notation for private fields is not supported in ArkTS: 18 class C { 19 #foo: number = 42 20 } 21 */ 22 23``` 24 25## ArkTS 26 27 28``` 29 30 class C { 31 private foo: number = 42 32 } 33 34``` 35 36 37