10 lines
No EOL
227 B
TypeScript
10 lines
No EOL
227 B
TypeScript
//@target: ES5
|
|
|
|
// `readonly` won't work outside of property parameters
|
|
class X {
|
|
method(readonly x: number) {}
|
|
set x(readonly value: number) {}
|
|
}
|
|
(readonly x) => 0;
|
|
// OK to use `readonly` as a name
|
|
(readonly) => 0; |