Merge pull request #75014 from vonagam/assert-literal-false
GDScript: Allow usage of literal false in assert without a warning
This commit is contained in:
commit
f374390fc1
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')
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_OK
|
||||
ok
|
||||
Loading…
Add table
Add a link
Reference in a new issue