enso/test
Hubert Plociniczak 0855b74875
Vector should preserve warnings (#3938)
* Sequence literal (Vector) should preserve warnings

When Vector was created via a sequence literal, we simply dropped any
associated any warnings associated with it.
This change propagates Warnings during the creation of the Vector.
Ideally, it would be sufficient to propagate warnings from the
individual elements to the underlying storage but doesn't go well with
`Vector.fromArray`.

* update changelog

* Array-like structures preserver warnings

Added a WarningsLibrary that exposes `hasWarnings` and `getWarnings`
messages. That way we can have a single storage that defines how to
extract warnings from an Array and the others just delegate to it.

This simplifies logic added to sequence literals to handle warnings.

* Ensure polyglot method calls are warning-free

Since warnings are no longer automatically extracted from Array-like
structures, we delay the operation until an actual polyglot method call
is performed.

Discovered a bug in `Warning.detach_selected_warnings` which was missing
any usage or tests.

* nits

* Support multi-dimensional Vectors with warnings

* Propagate warnings from case branches

* nit

* Propagate all vector warnings when reading element

Previously, accessing an element of an Array-like structure would only
return warnings of that element or of the structure itself.
Now, accessing an element also returns warnings from all its elements as
well.
2022-12-07 11:10:11 +01:00
..
Benchmarks Some more tidying based on remaining tickets and PR comments. (#3946) 2022-12-06 18:35:18 +00:00
Examples_Tests Import modules' extension methods only with unqualified import statements (#3906) 2022-12-01 10:13:34 +00:00
Geo_Tests Some more tidying based on remaining tickets and PR comments. (#3946) 2022-12-06 18:35:18 +00:00
Google_Api_Test Parse the standard library (#3830) 2022-10-31 16:19:12 +00:00
Image_Tests Some more tidying based on remaining tickets and PR comments. (#3946) 2022-12-06 18:35:18 +00:00
micro-distribution Some more tidying based on remaining tickets and PR comments. (#3946) 2022-12-06 18:35:18 +00:00
Table_Tests Some more tidying based on remaining tickets and PR comments. (#3946) 2022-12-06 18:35:18 +00:00
Tests Vector should preserve warnings (#3938) 2022-12-07 11:10:11 +01:00
Visualization_Tests Some more tidying based on remaining tickets and PR comments. (#3946) 2022-12-06 18:35:18 +00:00