MethodBodySemanticChecker: allows a local variable to be instantiated only if it's of one of these types: Class, Function, Object, and *.

var abc:Class;
new abc(); //allowed

var xyz:String;
new xyz(); //problem

This matches the behavior in the Flex SDK compiler.
1 file changed