I'm learning Kotlin, and in my project I have something like the following
Utils.kt:
var weightInKilos = 100.0
//should multiply the above var
fun doSomething(multiplier: Double, weightInKilos: Double) {
weightInKilos = weightInKilos * multiplier
}
print(doSomething(4.2, weightInKilos))
This would be the entire file (it's not part of an object,) so I can't use the this keyword. I know I could just rename one of them but is there some kind of identifier I can use to distinguish the two vars so the code prints 420?