TypeScript/tests/cases/fourslash/goToImplementationInterfaceProperty_00.ts

22 lines
512 B
TypeScript
Raw Normal View History

2016-08-22 22:57:40 +02:00
/// <reference path='fourslash.ts'/>
// Should handle property assignments in object literals within variable like declarations
//// interface Foo {
//// hello: number
//// }
////
//// var bar: Foo = { [|hello|]: 5 };
2016-08-22 22:57:40 +02:00
////
////
//// function whatever(x: Foo = { [|hello|]: 5 * 9 }) {
2016-08-22 22:57:40 +02:00
//// x.he/*reference*/llo
//// }
////
//// class Bar {
//// x: Foo = { [|hello|]: 6 }
2016-08-22 22:57:40 +02:00
////
//// constructor(public f: Foo = { [|hello|]: 7 } ) {}
2016-08-22 22:57:40 +02:00
//// }
2016-09-14 02:33:49 +02:00
verify.allRangesAppearInImplementationList("reference");