Created
December 13, 2011 08:11
-
-
Save bsideup/1471188 to your computer and use it in GitHub Desktop.
Stack context error
This file contains hidden or 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 FunctionCallTests extends Sprite | |
{ | |
public function FunctionCallTests() | |
{ | |
traceMyArgs( $[this, "yo"] ); | |
} | |
public function traceMyArgs( ...args ):void | |
{ | |
trace( "Yeah!", args ); | |
} | |
public function get yo():FunctionCallTests | |
{ | |
trace( "FunctionCallTests.yo!" ); | |
return this; | |
} | |
} | |
} | |
class $ | |
{ | |
public static function traceMyArgs( ...args ):void | |
{ | |
trace( "O_o", args ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and the output is:
[trace] FunctionCallTests.yo!
[trace] O_o [object FunctionCallTests]