Problem with "assert", compiler error: "these types are not comparable: {"a":"unit","b":"unit"}"
In this code, "assert" is supposed to return a unit if the condition is true, but when checking if a unit is returned, the compiler throws an error: these types are not comparable: {"a":"unit","b":"unit"}
It doesn't work either if I replace () with unit as shown in this example.