We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fa6b6d commit 76da69cCopy full SHA for 76da69c
tests/cases/fourslash/contextuallyTypedObjectLiteralMethodDeclarationParam01.ts
@@ -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