<Kotlin: Keyword cannot be used as a reference> fu...
# stackoverflow
u
Kotlin: Keyword cannot be used as a reference fun main() { print("This is a calculator") print("enter your first number") val no1 = readLine()!! print("enter your operation") val operation1 = readLine()!! print("enter your second number") val no2 = readLine()!! val result = if(operation1 == '*') print("$val no1 * $val no2") } It keeps coming up with Kotlin: Keyword cannot be used as a reference. I am very new to kotlyn and I am just trying to create a basic calculator. PLease help.