empty array always detected as type mat

Private: Q&ACategory: Bugempty array always detected as type mat
Admin Staff asked 8 years ago

This following code

rates:vec = []

Refuses to compile because of:
Type mismatch for assignment (expected: vec, got: mat)!
The empty array should be any type (vec, mat or cube) in my opinion

1 Answers
Admin Staff answered 8 years ago

Thanks! It was a runtime problem that has been fixed for the next version.