Skip to content

Instantly share code, notes, and snippets.

@bsideup
Created December 13, 2011 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsideup/1471188 to your computer and use it in GitHub Desktop.
Save bsideup/1471188 to your computer and use it in GitHub Desktop.
Stack context error
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 );
}
}
@bsideup
Copy link
Author

bsideup commented Dec 13, 2011

and the output is:

[trace] FunctionCallTests.yo!
[trace] O_o [object FunctionCallTests]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment