TypeScript/tests/baselines/reference/for-of47.types
Wesley Wigham dd933f4413
Fix get symbol at location to behave correctly for parameter assignments and jsx attributes (#20706)
* Fix get symbol at location to behave correctly got parameter assignments and jsx attributes

* Handle all those edge cases that weren;t explicitly handled

* Fix part of bug WRT getTypeAtLocation and for loops

* Baseline corrections pursuant to #20710

* Restore jsdoc tag interpretation

* Clean up some code, revert fourslash tests

* Cleanup types used by PR feedback
2017-12-15 15:50:22 -08:00

36 lines
628 B
Plaintext

=== tests/cases/conformance/es6/for-ofStatements/for-of47.ts ===
var x: string, y: number;
>x : string
>y : number
var array = [{ x: "", y: true }]
>array : { x: string; y: boolean; }[]
>[{ x: "", y: true }] : { x: string; y: boolean; }[]
>{ x: "", y: true } : { x: string; y: boolean; }
>x : string
>"" : ""
>y : boolean
>true : true
enum E { x }
>E : E
>x : E
for ({x, y: y = E.x} of array) {
>{x, y: y = E.x} : { x: string; y?: E; }
>x : string
>y : E
>y = E.x : E
>y : number
>E.x : E
>E : typeof E
>x : E
>array : { x: string; y: boolean; }[]
x;
>x : string
y;
>y : number
}