Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.5.4
-
None
-
None
-
None
Description
final greeting = 'Hello' greeting = 'Welcome' println greeting
What I expect is that Groovy will complain greeting is final variable that should not be able to be modified.
Actually, the code executed very well, and its result is: Welcome
Attachments
Issue Links
- duplicates
-
GROOVY-1628 Inconsistent checking of final
-
- Closed
-