18 lines
399 B
TypeScript
18 lines
399 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
// You cannot extract an exported function declaration
|
||
|
|
||
|
//// namespace ns {
|
||
|
//// /*a*/export function fn() {
|
||
|
////
|
||
|
//// }
|
||
|
//// fn();
|
||
|
//// /*b*/
|
||
|
//// }
|
||
|
|
||
|
goTo.select('a', 'b');
|
||
|
verify.not.refactorAvailable("Extract Method");
|
||
|
edit.deleteAtCaret('export'.length);
|
||
|
goTo.select('a', 'b');
|
||
|
verify.refactorAvailable("Extract Method");
|