Skip to content

Autocompletion not working as expected on InnerClass when Type Check? #108045

Open
@JACKADUX

Description

@JACKADUX

Tested versions

godot 4.5 beta1

System information

win10

Issue description

class_name MyClass

class InnerClass:
    pass

Autocompletion works in var create but not work in type check

# work: when i input 'MyClass.' will appear a autocomlation window to select 'InnerClass'
var a = MyClass.InnerClass 

# not work: when i input 'MyClass.' there only appear 'ConnectFlags' in autocomlation window.
if a is MyClass.InnerClass

# also not work
func test() -> MyClass.InnerClass

# also not work
var my_class : MyClass.InnerClass

It seems that the code involving type checking cannot automatically complete the inner type or other const value

Steps to reproduce

2025-06-27.204236.mp4

Minimal reproduction project (MRP)

...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions