Skip to content

Array comprehension #30

@andyli

Description

@andyli
import tink.CoreApi;

@await class Test {
    static function getOne() return Future.sync(1);
    @await static function main() {
        var ones = [for (i in 0...3) @await getOne()];
        trace(ones); // actual: [{}], expected: [1, 1, 1]
    }
}

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