- 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?
pro results from var as List<of String> = List<of String>
error: Incompatible types. Cannot assign value of type Type on the right to List<of String> on the left.
var _result = List<of String>()
pro result as var
pro results as List<of String> = List<of String>
# creates backing var _result initialised to List<of String>()
pro results as List<of String> = List<of String>
error: Expecting EOL, but got "=" (ASSIGN) instead.
torial wrote:Am I doing something wrong?
class X
pro results from var as IList<of String> = List<of String>()
class X
pro results from var = List<of String>()
Users browsing this forum: No registered users and 62 guests