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
OS/device including version:
Windows 10.0.19041.804
Issue description:
I declared an inner class, which has a function returning a value of its own type or a supertype (sibling types are for some reason not in scope. Maybe related?)
Then, I declared a function in the containing .gd file which returns a value of the inner type. However, the two types are not compatible.
Calinou
changed the title
GDScript: Inner class type declarations mismatched in outer scope
GDScript 2.0: Inner class type declarations mismatched in outer scope
Mar 16, 2021
I think this is the same as #47063, which was fixed by #49105. At least I can't reproduce with the snippet in the post (the project is outdated given some renames and have some actual errors, so it's a bit difficult to test). I'll assume this is solve, as the mentioned error doesn't happen anymore.
Godot version:
4.0.dev 8e293ba
OS/device including version:
Windows 10.0.19041.804
Issue description:
I declared an inner class, which has a function returning a value of its own type or a supertype (sibling types are for some reason not in scope. Maybe related?)
Then, I declared a function in the containing .gd file which returns a value of the inner type. However, the two types are not compatible.
Script:
Error:
Steps to reproduce:
Minimal reproduction project:
ImportedTypeDecl.zip
The text was updated successfully, but these errors were encountered: