more types tests and fixes

This commit is contained in:
sergeych committed 2026-03-09 12:32:37 +03:00
1 parent 90e586b5d2
commit 32a7adf56e
2 files changed
+49 -2

No files matched your search

@@ -187,10 +187,12 @@ class TypesTest {
eval(
"""
class Ctx {
val contract = null
fun println(msg: String) = msg
}
fun use(callContext) {
assert(callContext is Ctx)
assert(callContext.contract == null)
callContext.println("hello")
}
assertEquals("hello", use(Ctx()))