Using null
as default parameter causes parse error when trying to access members of that parameter
#56217
Labels
Milestone
Godot version
v4.0.dev.custom_build [9d02cfa]
System information
Linux Mint - Vulkan API 1.2.131 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce GTX 1080
Issue description
When having a function that is using a default parameter which is
null
the parser seemingly always asumes that this variable isnull
if no further assignment in the function itself happens.This leads to problems if this variable is a dictionary because members can't be accessed.
The provided code snippets should make it clearer.
Maybe this issue is related? #54643
Steps to reproduce
Not working
Working
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: