One has to be careful when overriding, or otherwise transferring
args from one varargs method to another, so that the varargs array from the outer method is not packaged up as one arg to the inner method. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4307 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
+2
-2
@@ -44,9 +44,9 @@ public class Log
|
||||
* A convenience function for quickly and easily inserting printy
|
||||
* statements during application development.
|
||||
*/
|
||||
public static function testing (msg :String, ... params) :void
|
||||
public static function testing (... params) :void
|
||||
{
|
||||
mx.logging.Log.getLogger("testing").debug(msg, params);
|
||||
mx.logging.Log.getLogger("testing").debug.apply(params);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user