Skip to content

output declaration type random change order #30328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bluelovers opened this issue Mar 12, 2019 · 1 comment
Closed

output declaration type random change order #30328

bluelovers opened this issue Mar 12, 2019 · 1 comment
Labels
Design Limitation Constraints of the existing architecture prevent this from being fixed

Comments

@bluelovers
Copy link
Contributor

TypeScript Version: 3.4.0-dev.201xxxxx

Search Terms:

Code

output declaration type random change order

case 1

case 2

Expected behavior:

output order should always is same

Actual behavior:

image

Playground Link:

Related Issues:

@RyanCavanaugh RyanCavanaugh added the Design Limitation Constraints of the existing architecture prevent this from being fixed label Mar 12, 2019
@RyanCavanaugh
Copy link
Member

These are all equivalent and the compiler is allowed to produce different outputs for different inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design Limitation Constraints of the existing architecture prevent this from being fixed
Projects
None yet
Development

No branches or pull requests

2 participants