Hello, I have some questions about the newly shipp...
# getting-started
s
Hello, I have some questions about the newly shipped 1.1.0-beta version. There is a great feature that you can use a
getter
method to define the type of variables:
val myString get() = "hi"
However, when I use
var myString get() = “hi”
, I got an error message “Property must be initialized”, I think it should work on both
val
and
var
.