Skip to content

Add better compile time checking of literals for multidimensional arrays #47

Open

Description

@jaccomoc

At the moment this gives a runtime error:

int[][] x = [1]
io.jactl.runtime.RuntimeError: Cannot cast from int to int[] @ line 1, column 13
int[][] x = [1]
            ^

We should be able to detect this at compile time instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions