Convert None to Void correctly

This commit is contained in:
Simon Hausmann 2023-12-14 00:07:58 +01:00 committed by Simon Hausmann
parent 82c2728cfd
commit 08461d7b32
2 changed files with 8 additions and 0 deletions

View file

@ -84,6 +84,7 @@ def test_callbacks():
test-callback(value) => {
return "local " + value;
}
callback void-callback();
}
""", "")
assert compdef != None
@ -106,3 +107,6 @@ def test_callbacks():
instance.set_global_callback("TestGlobal", "globallogic", lambda x: "python global " + x)
assert instance.invoke_global("TestGlobal", "globallogic", "foo") == "python global foo"
instance.set_callback("void-callback", lambda : None)
instance.invoke("void-callback")