TypeScript/tests/cases/fourslash/gotoDefinitionConstructorFunction.ts
Nathan Shively-Sanders 13e1ccdd01
goto-def should treat constructor functions as functions (#33109)
* goto-def:special handling for constructor functions

* Just treat constructor functions like functions

* Even simpler fallback
2019-08-27 16:22:22 -07:00

16 lines
346 B
TypeScript

/// <reference path="fourslash.ts" />
// @allowJs: true
// @checkJs: true
// @noEmit: true
// @filename: gotoDefinitionConstructorFunction.js
//// function /*end*/StringStreamm() {
//// }
//// StringStreamm.prototype = {
//// };
////
//// function runMode () {
//// new [|/*start*/StringStreamm|]()
//// };
verify.goToDefinition('start', 'end')