Echtzeitsysteme / Echtzeitsysteme/gips
Bug: Multiple accesses with `mappings.` and/or `patterns.` generate non-compilable code
Open
bug
- Dominant language
- Java
- Stars
- 7
- Forks
- 4
- Avg merge
- 5d 11h
- Merged PRs (30d)
- 10
Description
```
[...]
function dummy with Root {
mappings.n2n->sum(element.value)
*
patterns.findRoot->sum(1)
}
[...]
```
IMO, this should work because the first part is variable and `patterns...` is constant.
Error:
```
Description Resource Path Location Type
Lambda expression's parameter elt cannot redeclare another local variable defined in an enclosing scope. Dummy.java /gipsl.all.build.eltbug/src-gen/gipsl/all/build/eltbug/api/gips/objective line 34 Java Problem
```
Test case: https://github.com/Echtzeitsysteme/gips-tests/pull/99
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.