Skip to content

Conversation

@dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Jun 28, 2021

Updates initialization order of constructor parameters (with access modifier to also become fields) to first initialize the parameters (and emit an error if this or super are accessed) before executing other field initializers, as of JS/TS semantics.

fixes #1918

  • I've read the contributing guidelines

@dcodeIO dcodeIO merged commit f4091b8 into main Jun 29, 2021
@dcodeIO dcodeIO deleted the issue-1918 branch June 29, 2021 21:15
romdotdog pushed a commit to romdotdog/assemblyscript that referenced this pull request Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: constructor parameter members initialized in wrong order

2 participants