9dd8eda1c9
Library methods such as 'listOf' are resolved to have the package fragments as their parents, but JVM expects their containing file classes as parents. This fix generates those file classes and uses them as parent replacements for such library methods.
11 lines
186 B
Kotlin
Vendored
11 lines
186 B
Kotlin
Vendored
// KJS_WITH_FULL_RUNTIME
|
|
// WITH_RUNTIME
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
fun box(): String {
|
|
val x = (10L..50).map { it * 40L }
|
|
assertEquals(400L, x.first())
|
|
return "OK"
|
|
}
|