I have a simple program:
ArrayList<Int>().add(0, 0)
The generated JS:
(new Kotlin.ArrayList).add(0, 0);
However in kotlinLib.js I can only find the 1-param overload of add():
Kotlin.AbstractList = Kotlin.$createClass({
add:function (element) {
throw Kotlin.$new(Kotlin.Exceptions.UnsupportedOperationException)();
},
...
Kotlin.ArrayList = Kotlin.$createClass({
add:function (element) {
this.array[this.$size++] = element;
},
Is this a bug?