Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+= not working when adding a collection; := not working too #33

Closed
dvojtise opened this issue Jul 1, 2019 · 2 comments
Closed

+= not working when adding a collection; := not working too #33

dvojtise opened this issue Jul 1, 2019 · 2 comments
Assignees
Labels

Comments

@dvojtise
Copy link
Contributor

dvojtise commented Jul 1, 2019

related to #30

the += operator does not seem to work when adding a collection to a collection
the := operator does not seem to accept to replace the content of a collection by another collection

cf.
image

@dvojtise dvojtise added the bug label Jul 1, 2019
@dvojtise
Copy link
Contributor Author

dvojtise commented Jul 1, 2019

add project to reproduce the issue

ale-lang-issue-33.zip

@echebbi
Copy link
Collaborator

echebbi commented Oct 15, 2019

Looks like the issue is now fixed. The following code shows no error and prints 12345678 when run:

behavior helloworld;

open class HelloWorld {

    @main
    def void run() {
        Sequence(Integer) ints := Sequence{};
        Sequence(Integer) ints1 := Sequence{1, 2, 3};
        Sequence(Integer) ints2 := Sequence{5, 6, 7, 8};
        ints := ints1;
        ints += 4;
        ints += ints2;
		
        ('' + ints).log();
    }
}

Likely fixed by PR #69.

@echebbi echebbi closed this as completed Oct 15, 2019
@echebbi echebbi self-assigned this May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants