Fix merging two reference values

In this case, make the result of value type Object instead of unknown.
This commit is contained in:
Ilmir Usmanov
2020-06-09 01:28:34 +02:00
parent 5567033b33
commit 85e2392fef
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()
}