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
When you attempt to extend an Inner Class it extends the base script instead.
Steps to reproduce
Given: res://has_inner_classes.gd
class InnerClassA:
func hello():
print('world')
res://main.gd
extends SceneTree
var HasInnerClasses = load('res://has_inner_classes.gd')
class ExtendsInnerClassA:
extends "res://has_inner_classes.gd".InnerClassA
func _init():
var inst = ExtendsInnerClassA.new()
if(inst is HasInnerClasses):
print('instance is a HasInnerClasses')
if(inst is HasInnerClasses.InnerClassA):
print('instance is a InnerClassA')
quit()
Running main.gd in 3.5.stable.official.991bb6ac7 prints:
instance is a InnerClassA
Running main.gd in 4.0.alpha16.official.86dd3f312 prints:
Godot version
4.0.alpha16.official.86dd3f312
System information
OSX 10.15.7
Issue description
When you attempt to
extend
an Inner Class it extends the base script instead.Steps to reproduce
Given:
res://has_inner_classes.gd
res://main.gd
Running
main.gd
in 3.5.stable.official.991bb6ac7 prints:Running
main.gd
in 4.0.alpha16.official.86dd3f312 prints:Minimal reproduction project
Godot4ExtendInnerClass.zip
The text was updated successfully, but these errors were encountered: