Revert "Revert "Fix merging two reference values""

This reverts commit 1cccceabb9.
This commit is contained in:
Ilmir Usmanov
2020-06-23 22:11:28 +02:00
parent a6f14c206b
commit c21820c615
9 changed files with 76 additions and 4 deletions
@@ -0,0 +1,34 @@
// WITH_RUNTIME
// WITH_COROUTINES
// FULL_RUNTIME
// KJS_WITH_FULL_RUNTIME
class JarFile {
fun entries() = listOf<String>()
}
private fun scriptTemplatesDiscoverySequence(): Sequence<String> {
return sequence<String> {
for (dep in listOf<String>()) {
try {
val jar = JarFile()
try {
jar.entries().map { it }
val (loadedDefinitions, notFoundClasses) = listOf<String>() to listOf<String>()
listOf<String>().forEach {
yield(it)
}
} catch (e: Throwable) {
e.message
}
} catch (e: Exception) {
e.message
}
}
yield("OK")
}
}
fun box(): String {
return scriptTemplatesDiscoverySequence().first()
}