Export var for extended class_name not showing in the inspector

Godot Version



I have this class:

class_name Entity
extends Node

@export var stats: Stats : set = set_stats

when i create another one extended from that one, the @ export variable won´t show in the inpector:

class_name Player
extends Entity

Spected: to show like when the gd script is “entity.gd”

Result: the export var is not showed when i attach the “player.gd” script extended from “entity.gd”

It does show when adding more code, for some reason