Closed pouwelsjochem closed 1 year ago
Strangely I'm unable to reproduce any errors being displayed on shapeTable
's assignment. In fact, I'm actually able to get away with modifying shapeTable
's table expression to be fundamentally invalid, and I'm still not seeing errors I would expect. So there's definitely some buggy behavior here!
I suspect this will be related generic parameter resolution changes I made.
Environment
Lua
Type Safety
What are the steps to reproduce this issue?
What happens?
Since Luanalysis 1.4.0 (I think this didn't happen before)
table<>
definitions give incorrect errors about the type not matching. Weirdly if all values are the same the error disappears.Might be related to the plugin's new display format of tables since the error does include this new format:
Type mismatch. Required: 'table<string, MyShape>' Found: '{ key1: { a: "1", b: 1 }, key2: { a: "2", b: 2 }, key3: { a: "3", b: 3 } }'
What were you expecting to happen?
No error to be given for
shapeTable