Skip to content

Broken array literal initialization #30

@tmagrino

Description

@tmagrino

Currently the following will not compile to valid Java code from FabIL:

public class Test {
  public void foo() {
    int[] foobar = {1, 2, 3};
  }
}

The array declaration and initializer will be compiled into the following line of Java:
fabric.lang.arrays.intArray foobar = fabric.lang.WrappedJavaInlineable.$wrap({1, 2, 3}); which is invalid Java code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions