Skip to content

Instantly share code, notes, and snippets.

Created September 7, 2017 15:19
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 anonymous/6455862bc1e0bae6e43eb71026431360 to your computer and use it in GitHub Desktop.
Save anonymous/6455862bc1e0bae6e43eb71026431360 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
// Doesn't work
// lucee.runtime.type.ArrayImpl cannot be cast to lucee.runtime.type.Struct
function doSomething() {
structFilter( arguments, function() {
return true;
} );
}
doSomething( 'foo', 'bar' );
// Doesn't work
// can't cast [foo] string to a number value
function doSomething2( foo, bar ) {
structFilter( arguments, function() {
return true;
} );
}
doSomething2( 'foo', 'bar' );
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment