Merge pull request #6709 from RyanCavanaugh/fix6662

Don't crash when return type jsdoc tag is malformed
This commit is contained in:
Ryan Cavanaugh
2016-02-02 13:40:13 -08:00
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
/// <reference path="fourslash.ts" />
// @allowNonTsExtensions: true
// @Filename: file.js
//// /**
//// * This is a very cool function that is very nice.
//// * @returns something
//// * @param p anotherthing
//// */
//// function a1(p) {
//// try {
//// throw new Error('x');
//// } catch (x) { x--; }
//// return 23;
//// }
////
//// x - /**/a1()
goTo.marker();
verify.quickInfoExists();