Ah, I see. It's my inline fun. It got inlined real...
# javascript
e
Ah, I see. It's my inline fun. It got inlined real bad.
Copy code
inline fun f() = document.createElement("div") { }
Copy code
0.until(1).map { f() }
youtrack 1
Copy code
var $receiver = until(0, 1);
    var destination = ArrayList_init(collectionSizeOrDefault($receiver, 10));
    var tmp$_4;
    tmp$_4 = $receiver.iterator();
    while (tmp$_4.hasNext()) {
      var item = tmp$_4.next();
      var tmp$_5 = destination.add_11rb$;
      var Unit_0 = Kotlin.kotlin.Unit;
      var createElement = Kotlin.kotlin.dom.createElement_7cgwi1$;
      function DOM$f$lambda($receiver) {
        return Unit_0;
      }
      tmp$_5.call(destination, createElement(document, 'div', DOM$f$lambda));
    }
This is the simplified version. In my original code, I need f() to use inline because it also uses reified. But I worked around it by inserting another function as indirection.
b
Please file an issue
Found it, thank you!