refactor(test): DictTest 嵌套 dict 取用改用 dict* 强类型
将 outer["sub"] 的 t.CPtr 中转改为 dict*,与 rawptr 迁移后的类型口径一致。
This commit is contained in:
1 parent
e9f12973fd
commit
1edc266ada
1 file changed
+1
-2
@@ -208,8 +208,7 @@ def main() -> CInt | CExport:
|
||||
inner.set_int("b", 2)
|
||||
outer.set_dict("sub", inner)
|
||||
|
||||
sub_p: t.CPtr = outer["sub"]
|
||||
sub: dict = sub_p
|
||||
sub: dict* = outer["sub"]
|
||||
sa_p: t.CPtr = sub["a"]
|
||||
sb_p: t.CPtr = sub["b"]
|
||||
sa: int = c.Deref((int | t.CPtr)(sa_p))
|
||||
|
||||
Reference in new issue
Block a user