TypeScript/tests/cases/fourslash/goToDefinitionIndexSignature2.ts
Andy 998beadba2
Support goto-definition for index signatures (#23220)
* Support goto-definition for index signatures

* Use checker.getIndexInfoOfType

* Handle undefined info.declaration
2018-04-09 12:48:41 -07:00

12 lines
226 B
TypeScript

/// <reference path='fourslash.ts'/>
// Tests that we don't crash for an index signature with no declaration.
// @allowJs: true
// @Filename: /a.js
////const o = {};
////o.[|/*use*/foo|];
verify.goToDefinition("use", []);