TypeScript/tests/cases/fourslash/extract-method6.ts
2017-08-04 16:10:33 -07:00

17 lines
410 B
TypeScript

/// <reference path='fourslash.ts' />
// Cannot extract globally-declared functions or
// those with non-selected local references
//// /*f1a*/function f() {
//// /*g1a*/function g() { }
//// g();/*g1b*/
//// g();
//// }/*f1b*/
goTo.select('f1a', 'f1b');
verify.not.refactorAvailable('Extract Method');
goTo.select('g1a', 'g1b');
verify.not.refactorAvailable('Extract Method');