private fun valParameter(test: String) { //throws val can not be reassigned error test = test.capitalize() }