From e2b02c6bdd82900c040fea97d694363a2e5b6805 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Fri, 1 Aug 2014 17:12:00 -0700 Subject: [PATCH] Add new go to def test --- .../goToDefinitionApparentTypeProperties.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/cases/fourslash/goToDefinitionApparentTypeProperties.ts 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");