Skip to content

Instantly share code, notes, and snippets.

@mrchnk
Last active August 29, 2015 13:57
Show Gist options
  • Save mrchnk/9349153 to your computer and use it in GitHub Desktop.
Save mrchnk/9349153 to your computer and use it in GitHub Desktop.
Test for asc2 -inline bug
package {
import flash.display.Sprite;
public class InlineTest extends Sprite {
private var _obj : Object;
public function InlineTest() {
_obj = ClassA._ref = {};
test();
}
private function test() : void {
switch ( _obj ) {
case ClassA.ref:
trace( 'ClassA.ref' );
break;
default :
trace( 'default' );
}
}
}
}
class ClassA {
static public var _ref : Object;
static public function get ref() : Object {
return _ref;
}
public function ClassA() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment