Bugfix
The result of [1, 2].containsElement(["a", "b"].size()) is expected to be true. However, the expression currently returns false because the list with 1 and 2 is de facto a list with double values, but the length returns an integer value.
Solution
TL-Script already uses double as a representation of numbers in "almost all" places (especially for all arithmetic operations). Now TL-Script only uses double as number representation. This means that both the result of [1, 2].size() and 1` and `2 are doubles internally. This means that the content check works again.
Test
- test.com.top_logic.model.search.expr.TestSearchExpression.testNumberCompare()