Var in parameters definition

This is what’s also supported:

fun simple(age:Int):Int{
var age = age
// make changes to age code here
return age
}

This leads to a warning in IDEA, but if your coding style allows it, just disable the corresponding inspection.

Instead of mutating parameters (which would be confusing), Kotlin may extend its support for name shadowing, as was discussed here: