correct end-block token processing (detect more errors)

This commit is contained in:
sergeych committed 2025-08-11 22:48:43 +03:00
1 parent c398496ee0
commit e916d9805a
3 files changed
+41 -10

No files matched your search

+17
View File
@@ -43,4 +43,21 @@ class OOTest {
assertEquals( "foo!", Point.getData() )
""".trimIndent())
}
// @Test
fun testDynamic() = runTest {
eval("""
println("0")
class DynamicTest : Dynamic {
fun getDynamic(name) {
if (name == "foo") "bar" else null
}
}
println("1")
val d = DynamicTest()
println(d)
println("2")
""".trimIndent())
}
}
@@ -2375,8 +2375,6 @@ class ScriptTest {
x++; y++
}
assertEquals(p, Point(2,3))
>>> void
""".trimIndent()
)
}
@@ -2393,8 +2391,6 @@ class ScriptTest {
y++
}
assertEquals(p, Point(2,3))
>>> void
""".trimIndent()
)
}