Details
-
Story
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Security Level: Users (General product issues)
-
3
-
UNDECIDED
-
Green Sprint 103, Green Sprint 104
Description
Extend the scope of variable declaration to the whole function (this puts CTL to sync with Java and allows seamless compilation of CTL to Java).
https://en.wikipedia.org/wiki/Variable_shadowing
Example:
function integer transform() { integer b=10; for (integer c=10; c<100; c++) { integer b=20; } }
Should lead to something like: Error: Line 4 column 5 - Line 12 column 16: Duplicate variable 'b’!
Attachments
1.
|
Port changes from CTL improvements branch |
|
Closed | Martin Predny (Inactive) |
|
|||||||
2.
|
Add automated tests |
|
Closed | Martin Predny (Inactive) |
|
|||||||
3.
|
Fix failing tests |
|
Closed | Martin Predny (Inactive) |
|
|||||||
4.
|
Test org.jetel.testenvironment.ScenarioTest.TL2 is failing |
|
Closed | Martin Predny (Inactive) |