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
Bug in Boo (tested with trunk 0.9.7 and 0.9.4):
Destructuring from returned lists works fine with regular variables, but not with fields of either classes or structs. From the error message "unexpected token: ,." I suspect an operator precedence issue.
defbar():
return [1, 2]
classfoo:
publica as int=0publicb as int=0structzoo:
publica as int=0publicb as int=0f=foo()
z=zoo()
// This worksa, b=bar()
printa, b// prints "1 2" as expected// This DOESN'Tf.a, f.b=bar() // BCE0043: Unexpected token: ,.// This DOESN'Tz.a, z.b=bar() // BCE0043: Unexpected token: ,.
The text was updated successfully, but these errors were encountered:
Bug in Boo (tested with trunk 0.9.7 and 0.9.4):
Destructuring from returned lists works fine with regular variables, but not with fields of either classes or structs. From the error message "unexpected token: ,." I suspect an operator precedence issue.
The text was updated successfully, but these errors were encountered: