Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CRASH] when trying to initialise multi-dimension struct value #2567

Closed
Oldes opened this issue Sep 9, 2023 · 0 comments
Closed

[CRASH] when trying to initialise multi-dimension struct value #2567

Oldes opened this issue Sep 9, 2023 · 0 comments
Labels

Comments

@Oldes
Copy link
Owner

Oldes commented Sep 9, 2023

Currently:

>> make struct! [a: [int8! [2]] [1 1]]
== make struct! [a: [int8! [2]] [1 1]] ;; OK

>> make struct! [a: [int8! [2]] "a"] ;; Error is also OK... (although there is `none` instead of `string!`)

** Script error: expected block! not none
** Where: make
** Near: make struct! [a: [int8! [2]] "a"]

>> make struct! [a: [int8! [2]] ["a" "a"]] ;; Error is also OK...

** Script error: string! type is not allowed here
** Where: make
** Near: make struct! [a: [int8! [2]] ["a" "a"]]

>> make struct! [a: [int8! [2]] 1] ;; CRASH - should not happen!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant