jakt icon indicating copy to clipboard operation
jakt copied to clipboard

Builtins::Array has no operator+, but jakt accepts it anyway

Open ADKaster opened this issue 3 years ago • 0 comments

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>')

ADKaster avatar Sep 03 '22 19:09 ADKaster