Are there restrictions to the textual order of type declaration and use?
- Can a type be used to declare a field before the type itself is declared?
- Can the fields of a type be used before it is declared?
- Can a type be inherited from before it is declared?
- Can a type be extended before it is declared?
- Can a behavior belonging to an actor if it is declared before the actor?
- Can a modifier be declared before the behavior and/or actor it belongs to?
- Can a field be constrained or referred to in a method before it has been declared?
- Can a unit for a physical type be declared before the type itself?
"before" means in a textual order, so when reading the code from top to bottom.
This should be clarified.