Skip to content

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

Open
@jaccomoc

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.

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