When i am writing something (poorly thought out) like :
class_name DataSet
extends Resource
@export var resource_type: String = "Resource"
@export var resource_set: Array[resource_type]
The engine doesn't seems to appreciate it and tells me :
Parse Error: "resource_type" is a variable but does not contain a type.
I get that it's not the smartest way to go but I have no idea of workaround for that. The resource_type
can't be typed hint as a 'Type' itself.
My wish would be to create multiple DataSet resources that would be type hinted according to the custom Resources they store for safer access and the ease of "quick load"-ing in the inspector.