Join Slack
Powered by
Is return type of `plusAssign` operator function a...
# getting-started
h
harry.singh
04/07/2020, 10:52 PM
Is return type of
plusAssign
operator function always
Unit
?
👌 1
t
tseisel
04/08/2020, 9:45 AM
Yes. This is mainly because
a += b
is evaluated as a statement (assignment) and not an expression that returns a value.
👍 1
7
Views
Open in Slack
Previous
Next