commit | 9971b522c69a61b05ec61e3d67946c98af27b161 | [log] [tgz] |
---|---|---|
author | Josh Tynjala <joshtynjala@apache.org> | Wed Jan 23 09:30:09 2019 -0800 |
committer | Josh Tynjala <joshtynjala@apache.org> | Wed Jan 23 09:30:09 2019 -0800 |
tree | 3b81df69b72109da1db68781e0fbb67740c0073c | |
parent | 9d4e10187db5c73645b9b5a150d027869a41a4a8 [diff] |
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.