GDScript: Allow usage of literal false in assert without a warning

This commit is contained in:
Dmitrii Maganov
2023-03-17 05:36:50 +02:00
parent 1e0f7a12f7
commit 5d0b183822
3 changed files with 9 additions and 1 deletions
@@ -0,0 +1,6 @@
func test():
var never: Variant = false
if never:
assert(false)
assert(false, 'message')
print('ok')