diff --git a/tests/cases/fourslash/goToDefinitionApparentTypeProperties.ts b/tests/cases/fourslash/goToDefinitionApparentTypeProperties.ts new file mode 100644 index 00000000000..1b1c15a1153 --- /dev/null +++ b/tests/cases/fourslash/goToDefinitionApparentTypeProperties.ts @@ -0,0 +1,17 @@ +/// + +////interface Number { +//// /*definition*/myObjectMethod(): number; +////} +//// +////var o = 0; +////o./*reference1*/myObjectMethod(); +////o["/*reference2*/myObjectMethod"](); + +goTo.marker("reference1"); +goTo.definition(); +verify.caretAtMarker("definition"); + +goTo.marker("reference2"); +goTo.definition(); +verify.caretAtMarker("definition");