mirror of
https://github.com/apple/pkl.git
synced 2026-01-16 08:26:56 +01:00
This changes how the language performs typechecks for mappings and listings. Currently, Pkl will shallow-force any Mapping and Listing to check it the type parameter (e.g. Listing<Person> means each element is checked to be an instance of Person). This changes the language to check each member's type when the member is accessed. This also adjust test runner to handle thrown errors from within tests. With the change to make mapping/listing typechecks lazy, we can now correctly handle thrown errors from within a single test case. This adjusts the test runner to consider any thrown errors as a failure for that specific test case.
Command-line interface for Pkl. The CLI provides the following tools: * Batch evaluator * REPL