Skip to content

Extra cast required for array projection #125

Open

Description

@jaredlll08
var x = [1, 2, 3] as int[];
var y = new int[]<int>(x, (value => value * 2) as function(value as int) as int);

ideallythis is just:

var x = [1, 2, 3] as int[];
var y = new int[]<int>(x, (value => value * 2));

Activity

  1. kindlich commented on Jun 2, 2024

    @kindlich
    Member

    That constructor was removed, instead we should use x.map<int>(value => value * 2)
    I'll leave this open for now so that we check this again while fixing the tests in ArrayOperatorTests.java

  2. added this to the Refactor milestone on Jun 2, 2024
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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions