Skip to content

Instantly share code, notes, and snippets.

@mbolt35
Created November 1, 2012 02:30
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 mbolt35/3991277 to your computer and use it in GitHub Desktop.
Save mbolt35/3991277 to your computer and use it in GitHub Desktop.
var vec:Vector.<int> = new <int>[ 1, 2, 3 ];
var result:Vector.<int> = vec.concat(3, 2, 1);
trace(result);
// Unfortunately, this code ERRORS with: "Type Coercion failed"
// Cannot convert 3 to __AS3__.vec.Vector.<int>."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment