Inner class can’t extends from other class?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By alexzheng

I want to write a inner class that inherited from the built-in node,however,it seems it’s not allowed.
And by the way custom class don’t support code autocomplete.

like class MyClass extends Node2D?
do you have any example for it?

volzhs | 2018-04-27 16:28

Oh, yes, it’s supported.
Maybe there is some typo in my code that report error.
Thanks.
But the instance of MyClass have no code autocomplete

alexzheng | 2018-04-28 13:33