jakt icon indicating copy to clipboard operation
jakt copied to clipboard

samples: Verify that arrays are initialisable with size from a function

Open mnlrsn opened this issue 2 years ago • 2 comments

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.

mnlrsn avatar Jul 23 '22 16:07 mnlrsn

Ah, it won't accept failing tests.

Issue created at #951 .

mnlrsn avatar Jul 23 '22 16:07 mnlrsn

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.

robryanx avatar Jul 26 '22 00:07 robryanx

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.

mnlrsn avatar Aug 26 '22 20:08 mnlrsn