mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 12:57:11 -06:00
Test that signature help doesn't show 'this'
This commit is contained in:
parent
e4ed7f904e
commit
0060b4d663
43
tests/cases/fourslash/signatureHelpThis.ts
Normal file
43
tests/cases/fourslash/signatureHelpThis.ts
Normal file
@ -0,0 +1,43 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
////class Foo<T> {
|
||||
//// public implicitAny(n: number) {
|
||||
//// }
|
||||
//// public explicitThis(this: this, n: number) {
|
||||
//// console.log(this);
|
||||
//// }
|
||||
//// public explicitClass(this: Foo<T>, n: number) {
|
||||
//// console.log(this);
|
||||
//// }
|
||||
////}
|
||||
////
|
||||
////function implicitAny(x: number): void {
|
||||
//// return this;
|
||||
////}
|
||||
////function explicitVoid(this: void, x: number): void {
|
||||
//// return this;
|
||||
////}
|
||||
////function explicitLiteral(this: { n: number }, x: number): void {
|
||||
//// console.log(this);
|
||||
////}
|
||||
////let foo = new Foo<number>();
|
||||
////foo.implicitAny(/*1*/);
|
||||
////foo.explicitThis(/*2*/);
|
||||
////foo.explicitClass(/*3*/);
|
||||
////implicitAny(/*4*/12);
|
||||
////explicitVoid(/*5*/13);
|
||||
////let o = { n: 14, m: explicitLiteral };
|
||||
////o.m(/*6*/);
|
||||
|
||||
|
||||
goTo.marker('1');
|
||||
verify.currentParameterHelpArgumentNameIs("n");
|
||||
goTo.marker('2');
|
||||
verify.currentParameterHelpArgumentNameIs("n");
|
||||
goTo.marker('3');
|
||||
verify.currentParameterHelpArgumentNameIs("n");
|
||||
goTo.marker('4');
|
||||
verify.currentParameterHelpArgumentNameIs("x");
|
||||
goTo.marker('5');
|
||||
verify.currentParameterHelpArgumentNameIs("x");
|
||||
goTo.marker('6');
|
||||
verify.currentParameterHelpArgumentNameIs("x");
|
||||
Loading…
x
Reference in New Issue
Block a user