first OO features: x::class, x.method(1,2,3) builting Real.roundToInt
This commit is contained in:
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())
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user