If you attempt to modify a val
, you will get a compile error. In this case,
if you try running this code, you will see the compile error below the code
snippet.
You can learn more about this in:
Tags: