TypeScript/tests/baselines/reference/extractConstant/extractConstant_ArrowFunction_Expression.js

6 lines
No EOL
162 B
TypeScript

// ==ORIGINAL==
const f = () => /*[#|*/2 + 1/*|]*/;
// ==SCOPE::Extract to constant in global scope==
const newLocal = 2 + 1;
const f = () => /*RENAME*/newLocal;