I'm using an older version of scala 2.7.5
When i try to do computations like this,
var x = 100
var x = x%1000
I get a
error: recursive variable x needs type
Is there a work around? why do i get this error?
You're declaring the variable twice rather than just changing its value. Instead, do
var x = 100
x = x%1000
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With