TypeScript/tests/cases/fourslash/getJavaScriptQuickInfo7.ts

21 lines
507 B
TypeScript
Raw Normal View History

/// <reference path="fourslash.ts" />
// @allowNonTsExtensions: true
// @Filename: file.js
//// /**
//// * This is a very cool function that is very nice.
//// * @returns something
2016-02-02 06:48:16 +01:00
//// * @param p anotherthing
//// */
2016-02-02 06:48:16 +01:00
//// function a1(p) {
//// try {
//// throw new Error('x');
//// } catch (x) { x--; }
//// return 23;
//// }
////
//// x - /**/a1()
2016-09-09 18:02:55 +02:00
verify.quickInfoAt("", "function a1(p: any): number",
"This is a very cool function that is very nice.");