Skip to content

Bug: Multiple accesses with mappings. and/or patterns. generate non-compilable code #235

Open
@maxkratz

Description

@maxkratz
[...]
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: Echtzeitsysteme/gips-tests#99

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions