TypeScript/tests/cases/fourslash/goToDefinitionObjectLiteralProperties1.ts
Kanchalai Tanglertsampan 3d19782b1c Add language service tests
2017-01-18 15:29:38 -08:00

20 lines
374 B
TypeScript

/// <reference path='fourslash.ts' />
//// interface PropsBag {
//// /*first*/propx: number
//// }
//// function foo(arg: PropsBag) {}
//// foo({
//// pr/*p1*/opx: 10
//// })
//// function bar(firstarg: boolean, secondarg: PropsBag) {}
//// bar(true, {
//// pr/*p2*/opx: 10
//// })
verify.goToDefinition({
p1: "first",
p2: "first"
});