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
|
|
|
|
//// }
|
|
|
|
////
|
2018-05-31 22:32:02 +02:00
|
|
|
//// var bar: Foo = { [|hello|]: 5 };
|
2016-08-22 22:57:40 +02:00
|
|
|
////
|
|
|
|
////
|
2018-05-31 22:32:02 +02:00
|
|
|
//// function whatever(x: Foo = { [|hello|]: 5 * 9 }) {
|
2016-08-22 22:57:40 +02:00
|
|
|
//// x.he/*reference*/llo
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// class Bar {
|
2018-05-31 22:32:02 +02:00
|
|
|
//// x: Foo = { [|hello|]: 6 }
|
2016-08-22 22:57:40 +02:00
|
|
|
////
|
2018-05-31 22:32:02 +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");
|