enso/test
Hubert Plociniczak 6d3151f32d
UnresolvedSymbol is now accepted by Vector.sort (#6334)
`Vector.sort` does some custom method dispatch logic which always expected a function as `by` and `on` arguments. At the same time, `UnresolvedSymbol` is treated like a (to be resolved) `Function` and under normal circumstances there would be no difference between `_.foo` and `.foo` provided as arguments.

Rather than adding an additional phase that does some form of eta-expansion, to accomodate for this custom dispatch, this change only fixes the problem locally. We accept `Function` and `UnresolvedSymbol` and perform the resolution on the fly. Ideally, we would have a specialization on the latter but again, it would be dependent on the contents of the `Vector` so unclear if that is better.

Closes #6276,

# Important Notes
There was a suggestion to somehow modify our codegen to accomodate for this scenario but I went against it. In fact a lot of name literals have `isMethod` flag and that information is used in the passes but it should not control how (late) codegen is done. If we were to make this more generic, I would suggest maybe to add separate eta-expansion pass. But it could affect other things and could be potentially a significant change with limited potential initially, so potential future work item.
2023-04-20 07:58:58 +00:00
..
Benchmarks UnresolvedSymbol is now accepted by Vector.sort (#6334) 2023-04-20 07:58:58 +00:00
Examples_Tests Proper implementation of Value Types in Table (#6073) 2023-03-31 16:16:18 +00:00
Geo_Tests All Enso objects are hasheable (#3878) 2023-01-19 10:33:25 +01:00
Google_Api_Test Parse the standard library (#3830) 2022-10-31 16:19:12 +00:00
Image_Tests Small issues from working with Ned (#6160) 2023-04-03 13:01:42 +00:00
Meta_Test_Suite_Tests Remove old (Java) Regex library and replace with new (Truffle) library. (#6195) 2023-04-04 19:58:26 +00:00
micro-distribution Change order of arguments when controlling context (#6357) 2023-04-19 14:00:27 +00:00
Table_Tests sort handles incomparable values (#5998) 2023-04-16 16:40:12 +02:00
Tests UnresolvedSymbol is now accepted by Vector.sort (#6334) 2023-04-20 07:58:58 +00:00
Visualization_Tests Implement Table.union for Database backend (#6204) 2023-04-06 08:40:34 +00:00