Assignment to properties
Posted: Fri Nov 26, 2010 12:35 am
I had tried to assign an initial value to a property (can't leave off type definition, since it implements against an interface and complains if I leave it off), but I get an error. When I read the properties page in the Wiki and the How To example, I am under the impression that this is legal:
But I get the following error instead:
Am I doing something wrong?
- Code: Select all
pro results from var as List<of String> = List<of String>
But I get the following error instead:
error: Incompatible types. Cannot assign value of type Type on the right to List<of String> on the left.
Am I doing something wrong?