I have tried to convert this code to godot 4 but it did not work.
Godot 3 code:
export(Array, Resource) var items = [ null, null, null, null, null, null, null, null, null]
Not working godot 4 code:
@export var items: Array[Resource] = [null, null, null, null, null, null, null, null, null]
It says 'Trying to assign a typed array with an array of different type.