Last active
August 29, 2015 13:57
-
-
Save mrchnk/9349153 to your computer and use it in GitHub Desktop.
Test for asc2 -inline bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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