Reputation: 1
The compiler is showing error Kotlin: Variable result must be initialized.
Here is the code
Upvotes: 0
Views: 792
Reputation: 977
In the when statement there is missing an initialization of the result variable, because it's expected to be.
when(intent...) {
"+" -> result = something...
...
else {
result = something else...
}
}
Upvotes: 1