Attempt to extract return expressions, rather than return statements, and initializers, rather than variable declarations.
10 lines
276 B
TypeScript
10 lines
276 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// You may not extract variable declarations with the export modifier
|
|
|
|
//// namespace NS {
|
|
//// /*start*/export var x = 10, y = 15;/*end*/
|
|
//// }
|
|
|
|
goTo.select('start', 'end')
|
|
verify.not.refactorAvailable('Extract Symbol');
|