TypeScript/tests/cases/fourslash/findAllRefsForFunctionExpression01.ts

13 lines
447 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts'/>
// @Filename: file1.ts
2019-06-13 21:25:02 +02:00
////var foo = [|function [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}foo|](a = [|foo|](), b = () => [|foo|]) {
//// [|foo|]([|foo|], [|foo|]);
2019-06-06 00:01:34 +02:00
////}|]
// @Filename: file2.ts
/////// <reference path="file1.ts" />
////foo();
2019-06-06 00:01:34 +02:00
verify.singleReferenceGroup("(local function) foo(a?: void, b?: () => (a?: void, b?: ...) => void): void", "foo");