first OO features: x::class, x.method(1,2,3) builting Real.roundToInt

This commit is contained in:
sergeych committed 2025-05-28 11:44:55 +04:00
1 parent 361c1d5b13
commit d21544ca5d
11 files changed
+231 -71

No files matched your search

@@ -564,4 +564,14 @@ class ScriptTest {
eval(src)
}
@Test
fun testCallable1() = runTest {
val src = """
val callable = {
println("called")
}
""".trimIndent()
println(eval(src).toString())
}
}