jakt
jakt copied to clipboard
Builtins::Array has no operator+, but jakt accepts it anyway
This causes a compiler error in C++
jakt:
let a = ["hello", "world"]
let b = ["sup", "everyone"]
let c = a + b
Expected result: compile error, or creating a new array that is the concat of a and b Result: C++ error like so
error: invalid operands to binary expression ('const JaktInternal::Array<String>' and 'const JaktInternal::Array<String>')