Add more test for 10426
This commit is contained in:
parent
d8ab098195
commit
eeec775da0
1 changed files with 20 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
||||||
|
/// <reference path="../fourslash.ts"/>
|
||||||
|
|
||||||
|
// @allowNonTsExtensions: true
|
||||||
|
// @Filename: a.js
|
||||||
|
//// /**
|
||||||
|
//// * Modify the parameter
|
||||||
|
//// * @param {string} p1
|
||||||
|
//// */
|
||||||
|
//// var foo = function (p1) { }
|
||||||
|
//// module.exports.foo = foo;
|
||||||
|
//// fo/*1*/
|
||||||
|
|
||||||
|
// @Filename: b.ts
|
||||||
|
//// import a = require("./a");
|
||||||
|
//// a.fo/*2*/
|
||||||
|
|
||||||
|
goTo.marker('1');
|
||||||
|
verify.completionEntryDetailIs("foo", "var foo: (p1: string) => void", "Modify the parameter");
|
||||||
|
goTo.marker('2');
|
||||||
|
verify.completionEntryDetailIs("foo", "(property) a.foo: (p1: string) => void", "Modify the parameter");
|
Loading…
Reference in a new issue