TypeScript/tests/baselines/reference/ES5For-of31.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

23 lines
388 B
Text

=== tests/cases/conformance/statements/for-ofStatements/ES5For-of31.ts ===
var a: string, b: number;
>a : string
>b : number
for ({ a: b = 1, b: a = ""} of []) {
>{ a: b = 1, b: a = ""} : { a?: number; b?: string; }
>a : number
>b = 1 : 1
>b : number
>1 : 1
>b : string
>a = "" : ""
>a : string
>"" : ""
>[] : undefined[]
a;
>a : string
b;
>b : number
}