2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
////function foo(a: number): string {
|
|
|
|
//// /*insideFunctionDeclaration*/
|
|
|
|
//// return "";
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////(function foo(): number {
|
|
|
|
//// /*insideFunctionExpression*/
|
|
|
|
//// fo/*referenceInsideFunctionExpression*/o;
|
|
|
|
//// return "";
|
|
|
|
////})
|
|
|
|
////
|
|
|
|
/////*globalScope*/
|
|
|
|
////fo/*referenceInGlobalScope*/o;
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ marker: ["globalScope", "insideFunctionDeclaration", "insideFunctionExpression"], includes: "foo" });
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfos({
|
|
|
|
referenceInsideFunctionExpression: "(local function) foo(): number",
|
|
|
|
referenceInGlobalScope: "function foo(a: number): string"
|
|
|
|
});
|