Open KoBeWi opened 4 years ago
Ok so I found another similar case (screenshot from master): Even though I declared a variable with a type, I need to cast it explicitly when assigning, otherwise it uses wrong type (probably Node in this case).
I just wanted to add that this is still happening in 3.3.1 and in the 4.0 devel master
Fixed in master
by #62760 but let's keep open if someone wants to attempt a similar fix for 3.x
.
Ok so I found another similar case (screenshot from master):
By the way, I realized the fix in master doesn't fix the situation in this image since the type guesser uses the last assigned value type with more priority. This could be fixed again by tweaking the order of stuff in _guess_identifier_type()
, but maybe we want it to combine the 2 instead (choose the more precise one)?
Godot version:
3.2.3 rc6
Issue description:
Autocompletion No autocompletion
What's even more weird, in my project I have a script where it's opposite (i.e. when type is assigned with
as
, the autocompletion fails)