eclipse-epsilon / epsilon

Epsilon is a family of Java-based scripting languages for automating common model-based software engineering tasks, such as code generation, model-to-model transformation and model validation, that work out of the box with EMF (including Xtext and Sirius), UML (including Cameo/MagicDraw), Simulink, XML and other types of models.
https://eclipse.org/epsilon
Eclipse Public License 2.0
67 stars 10 forks source link

EolMap is not a map #124

Closed micfort closed 1 month ago

micfort commented 1 month ago

so a very interesting issue showed up today for me with the following code:

var test = Map{"a" = 1, "b" = 2};
test["a"].println();

I got the following error EolMap {a=1, b=2} is not a collection or a map. So the error is definitely wrong, because EolMap is a map, but the question is more is the following syntax allowed: test["a"] ?

kolovos commented 1 month ago

Thanks for reporting this issue. It is a bug and it will be fixed in 2.6.

kolovos commented 1 month ago

This now works as expected. Also, item selector expressions can now be used to set/put values in collections/maps as shown in the tests.