998beadba2
* Support goto-definition for index signatures * Use checker.getIndexInfoOfType * Handle undefined info.declaration
11 lines
226 B
TypeScript
11 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", []);
|