mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 12:03:44 -05:00
Merge pull request #13686 from Microsoft/goToDefinition_callback
For goToDefinition, verify that tryGetSignatureDeclaration returns a signature declaration and not a FunctionType.
This commit is contained in:
17
tests/cases/fourslash/goToDefinitionFunctionType.ts
Normal file
17
tests/cases/fourslash/goToDefinitionFunctionType.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
// Tests that goToDefinition does not go to a function type; it goes to the value.
|
||||
|
||||
////const /*constDefinition*/c: () => void;
|
||||
/////*constReference*/c();
|
||||
////function test(/*cbDefinition*/cb: () => void) {
|
||||
//// /*cbReference*/cb();
|
||||
////}
|
||||
////class C {
|
||||
//// /*propDefinition*/prop: () => void;
|
||||
//// m() {
|
||||
//// this./*propReference*/prop();
|
||||
//// }
|
||||
////}
|
||||
|
||||
verify.goToDefinitionForMarkers("const", "cb", "prop");
|
||||
Reference in New Issue
Block a user