UHT is a little sensitive so it’s important you have a space padding inside the < > for the TArray type.
// This will FAIL!
TArray<TSubclassOf<class AActor>> ActorClassArray;
And of course you change change AActor to a base class of your own if the array is supposed to hold something more specific like all types of weapons in your game.