Actually, val-- after the inner class is not illegal. Using val inside the inner class if there is val-- after the innerclass is illegal (because val wouldn't remain effectively final if you do val-- after the inner class).
Noted.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.