Closed nhweston closed 2 years ago
I don't think any of the LUB stuff has made it to master yet. I haven't had time to finish that work... You may be able to work around it by declaring a type for the vector elements explicitly. E.g.,
val x : Vector({b : Int)} = [...]
instead of using the literal directly.
Some WIP for this is in https://github.com/inkytonik/cooma/commit/48f7891bb36cf0b4a0a4288b9a657967b14c9b39. Feel free to adapt or abandon as appropriate.
One would expect that
[{ a = 1, b = 2 }, { b = 3 }] : Vector({ b : Int })
. However, this is what actually happens: