You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though, @atirut-w, as this is a complex example, please add a minimum reproducible project (a MRP) to your issue. This greatly helps the developers to fix the issue, as it creates a testbed.
Godot version
v4.0.beta4.official [e675154]
System information
N/A
Issue description
Conditions for this to happen
Custom class for testing:
Testing script:
If we try to run the coroutine by doing
![Screenshot_20221112_204206](https://user-images.githubusercontent.com/25323231/201476890-6fbd4eef-0cd9-4c08-b3f6-f240eb01acb4.png)
var foo := await get_foo() as Foo
, we get the expectedFoo
object with the initialized variable:However, if we make
Foo
a subclass of another class...and do this:
foo
turns into a null, seemingly lost in the process of casting:This is a problem for me because I am making a plugin and thus have to avoid making generically named global classes.
Steps to reproduce
See above
Minimal reproduction project
Subclass problems.zip
The text was updated successfully, but these errors were encountered: