I saw the following fragment in a (runnable) example:
"private var mc:MyClass = new MyClass;"
Note: without the customary () after MyClass.
How can this be correct code?
The compiler will still generate the right results.
But certainly this is undocumented behavior, because I have not found any hint in the flex documentation that this is possible.
And is it not true that a compiler take any action to undocumented behavior?
It could be a bug. I haven’t dug through the language specification to see. So I don’t know if it is on purpose or by accident, but yes, it is not in the Flex doc.