TypeScript/tests/cases/fourslash/goToDefinitionObjectLiteralProperties1.ts
2017-10-18 15:49:46 -07:00

20 lines
382 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"
});