jakt
jakt copied to clipboard
samples: Verify that arrays are initialisable with size from a function
A sample to show that a fat-arrow member function can be used to provide the size as an integer without indicating the type (e.g. via a suffix), and hence must be inferred to be an integer. The initialiser of the arrays must accept this integer.
At the time of writing this works with the Rust-based compiler but not the self-hosted.
Ah, it won't accept failing tests.
Issue created at #951 .
Ah, it won't accept failing tests.
Issue created at #951 .
Yeah I think it would be useful to allow them. Probably need a flag to indicate that they are currently expected to fail.
Closing this pull request as it was intended to provide a test even if failing at the current state of development. Since there is no collection of tests for features that still need to be developed, it might as well be closed.