Fix inference regression and green tests

This commit is contained in:
sergeych committed 2026-04-02 16:48:14 +03:00
1 parent d409a4bb8b
commit 7b65ff9d0e
5 files changed
+91 -13

No files matched your search

@@ -209,4 +209,26 @@ class TestCoroutines {
// }.toList())
""".trimIndent())
}
@Test
fun testInferenceList() = runTest {
eval("""
import lyng.time
val d1 = launch {
delay(1000.milliseconds)
"Task A finished"
}
val d2 = launch {
delay(500.milliseconds)
"Task B finished"
}
val foo = [d1, d2]
for (d in foo) {
d.await()
println(d)
}
""".trimIndent())
}
}