Good evening.
I have two classes and I created an instance referencing the parent class by calling its method and it does not run and shows the following sentence:
"swift expressions are not allowed at the top level"
PS: I have tried everything, created it, recreated it ... they are all in the same group in Xcode
What can it be?
Follow print