You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.
Following initailization of a final variable to null the variable should be able to allow initialization once more to real value instead of throwing Cannot assign a value to the final variable error.
Example :
final variable = null
variable = true #throws an error, it should not
The text was updated successfully, but these errors were encountered:
Some time the initialization might be required to occur in a constructor or method such as
class TClass
final variable = null
block TClass(param)
variable = param #throw error it should not occur
Although the approach below work
class TClass
final variable
block TClass(param)
variable = param #no error
but sometime people can default to the above therefore the behavior should be the same.
null is currently an empty string which might be what is confusing the vm I ll open an issue for the null to be a true NULL pointer
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Following initailization of a final variable to null the variable should be able to allow initialization once more to real value instead of throwing
Cannot assign a value to the final variable
error.Example :
The text was updated successfully, but these errors were encountered: