Skip to content

Update isArrayType to include tuples - #115

Merged
Perryvw merged 2 commits into
TypeScriptToLua:masterfrom
dmarcuse:fix/tuple-array-type
Jun 7, 2018
Merged

Update isArrayType to include tuples#115
Perryvw merged 2 commits into
TypeScriptToLua:masterfrom
dmarcuse:fix/tuple-array-type

Conversation

@dmarcuse

@dmarcuse dmarcuse commented Jun 6, 2018

Copy link
Copy Markdown
Contributor

Tuples are a type of array and have the same semantics, so this PR changes isArrayType to include tuples. This fixes a few issues when using tuples with for-of loops, Array.prototype methods, and so on. It also includes a test for these cases.

@Perryvw
Perryvw merged commit 0cf96b0 into TypeScriptToLua:master Jun 7, 2018
@dmarcuse

dmarcuse commented Jun 7, 2018

Copy link
Copy Markdown
Contributor Author

Thanks!

@dmarcuse
dmarcuse deleted the fix/tuple-array-type branch June 7, 2018 08:28
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.

2 participants