The Jade 2025 release focuses on modernising the developer experience and helping you build faster, smarter, and more scalable applications.
myArray : StringArray;
myArray := create StringArray transient;
myArray.tryAddIfNotNull("a String");
Compiles fine. Throws a 1312 at runtime (Class of value passed to a collection method incompatible with membership)
Can the compiler be enhanced to detect this as an illegal operation? Either that, or the language be enhanced to allow this.
Hi Damian. This is a bug, and the same issue exists with tryRemoveIfNotNull(). Please open a PARSYS Contact and we'll address it.