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

List-in-list should be allowed by the compiler #27

Open
SaladDais opened this issue Apr 10, 2024 · 0 comments
Open

List-in-list should be allowed by the compiler #27

SaladDais opened this issue Apr 10, 2024 · 0 comments
Assignees
Labels
bug Something isn't working conformance fuzz Found by the LL compiler conformance fuzzer

Comments

@SaladDais
Copy link
Owner

SaladDais commented Apr 10, 2024

List-in-list is a runtime error rather than a compile-time error in LSL. As such, List-in-list in a local should be a compiler warning rather than an error.

The following is a perfectly valid LSL script:

default {
  state_entry() {
    return;
    list l = [[]];
  }
}

A list-in-list in a global, however, is a compile-time error.

@SaladDais SaladDais added bug Something isn't working conformance fuzz Found by the LL compiler conformance fuzzer labels Apr 10, 2024
@SaladDais SaladDais self-assigned this Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working conformance fuzz Found by the LL compiler conformance fuzzer
Projects
None yet
Development

No branches or pull requests

1 participant