Repository navigation
making empty list matches list<int> types - #11596
Conversation
|
I agree we should fix this before 0.90. One thing that concerns me: Should we instead modify |
Agreed. I think it's a better idea than just fix something in the evaluator. Edit: but it seems that is_subtype doesn't know about the value itself, pass a value here seems to be a large change, and make it to be a method of |
amtoine
left a comment
There was a problem hiding this comment.
it looks good locally and i trust the tests you've written, thanks @WindSoilder 🙏
|
Yes, you're right, we're doing dynamic type checking. Then, I guess it's OK, although we might want to think about concentrating the dynamic type checking into one place, like in the parser, so it's not spread out all over the place. |
# Description Fixes: nushell#11595 The original issue is caused by nushell#11475, we also need to make empty list matches `list type` or `table type` cc @amtoine # User-Facing Changes Nan # Tests + Formatting Done
Description
Fixes: #11595
The original issue is caused by #11475, we also need to make empty list matches
list typeortable typecc @amtoine
User-Facing Changes
Nan
Tests + Formatting
Done