Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subclass cannot be inherited from other subclass in autoload using its naming alias #61848

Closed
Chaosus opened this issue Jun 9, 2022 · 1 comment · Fixed by #68374
Closed

Comments

@Chaosus
Copy link
Member

Chaosus commented Jun 9, 2022

Godot version

a2c016e

System information

Windows 11

Issue description

Nested class from autoload cannot be accessed in the other script file using autoload name (only full path):

image

while this is ok:

image

Steps to reproduce

Create autoload GDScript file like :

extends Node

class A:
	pass

(call it Global.gd)

Create a GDScript and fill it like:

extends Node

class B extends Global.A:
	pass

EDIT: Actually is not even for 2nd case - it inherits autoload itself instead of nested class

Minimal reproduction project

class_test.zip

@Chaosus Chaosus added this to the 4.0 milestone Jun 9, 2022
@Chaosus Chaosus moved this to To Assess in 4.x Priority Issues Jun 9, 2022
@Chaosus Chaosus moved this from To Assess to Todo in 4.x Priority Issues Jun 9, 2022
@YuriSizov YuriSizov moved this from Todo to To Assess in 4.x Priority Issues Sep 12, 2022
@rune-scape
Copy link
Contributor

just tested that #68374 fixes this

Repository owner moved this from Todo to Done in GDScript Stabilization Tasks Nov 14, 2022
Repository owner moved this from To Assess to Done in 4.x Priority Issues Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants