Topic was automatically imported from the old Question2Answer platform.
Asked By
Idleman
I am trying to put a setter, but don’t know why keep getting this error. It is a standard line of code, can not figure out what is the problem. Did I do anything wrong? Thank you.
expected end of statement after expression, get setget instead
var count = 12 setget setter
I believe it’s missing a comma at the end to indicate that you want a setter but not a getter:
Hi,
this line of code is perfectly fine. Are you sure this is the line of the error?
Thanks for answering my question. It is weird, somehow it keep telling me the error, but I have no problem with setget on other parts of my project. Anyway, I end up using another approach to achieve the intent result without using setget.