TypeScript/tests/cases/fourslash/goToDefinitionObjectLiteralProperties1.ts

20 lines
382 B
TypeScript
Raw Normal View History

2016-11-08 20:07:17 +01:00
/// <reference path='fourslash.ts' />
//// interface PropsBag {
//// /*first*/propx: number
//// }
//// function foo(arg: PropsBag) {}
//// foo({
2017-10-19 00:49:46 +02:00
//// [|pr/*p1*/opx|]: 10
2016-11-08 20:07:17 +01:00
//// })
//// function bar(firstarg: boolean, secondarg: PropsBag) {}
//// bar(true, {
2017-10-19 00:49:46 +02:00
//// [|pr/*p2*/opx|]: 10
2016-11-08 20:07:17 +01:00
//// })
verify.goToDefinition({
p1: "first",
p2: "first"
});