TypeScript/tests/cases/fourslash/extract-method8.ts

18 lines
418 B
TypeScript
Raw Normal View History

2017-08-05 01:10:33 +02:00
/// <reference path='fourslash.ts' />
// You cannot extract an exported function declaration
//// namespace ns {
//// /*a*/export function fn() {
////
2017-08-05 01:10:33 +02:00
//// }
//// fn();
//// /*b*/
//// }
goTo.select('a', 'b');
verify.not.refactorAvailable("Extract Symbol");
2017-08-05 01:10:33 +02:00
edit.deleteAtCaret('export'.length);
goTo.select('a', 'b');
verify.refactorAvailable("Extract Symbol", 'function_scope_0');