Skip to content

Commit 76da69c

Browse files
Added failing fourslash test.
1 parent 3fa6b6d commit 76da69c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
// @noImplicitAny: true
4+
5+
////interface A {
6+
//// numProp: number;
7+
////}
8+
////
9+
////interface B {
10+
//// strProp: string;
11+
////}
12+
////
13+
////interface Foo {
14+
//// method1(arg: A): void;
15+
//// method2(arg: B): void;
16+
////}
17+
////
18+
////function getFoo1(): Foo {
19+
//// return {
20+
//// method1(/*param1*/arg) {
21+
//// arg.numProp = 10;
22+
//// },
23+
//// method2(/*param2*/arg) {
24+
//// arg.strProp = "hello";
25+
//// }
26+
//// }
27+
////}
28+
29+
goTo.marker("param1");
30+
verify.quickInfoIs("(parameter) arg: A")
31+
goTo.marker("param2");
32+
verify.quickInfoIs("(parameter) arg: B")

0 commit comments

Comments
 (0)