forked from Mirror/wren
In List.+(other), other should be an iterable, list is not required (#872)
We're iterating over it but do not check it's actually a list:
cb51d61a64/src/vm/wren_core.wren (L363-L369)
This commit is contained in:
committed by
GitHub
parent
4ac41c36db
commit
1720a20979
@ -177,7 +177,7 @@ It is a runtime error if the index is not an integer or is out of bounds.
|
||||
|
||||
### **+**(other) operator
|
||||
|
||||
Appends a list to the end of the list (concatenation). `other` must be a `List`.
|
||||
Appends a list to the end of the list (concatenation). `other` must be [an iterable](../../control-flow.html#the-iterator-protocol).
|
||||
|
||||
<pre class="snippet">
|
||||
var letters = ["a", "b", "c"]
|
||||
|
||||
Reference in New Issue
Block a user