cbruegg
08/07/2016, 8:50 AMx and `y`: It's Int?, not Int, which means they're nullable. times is not defined for nullable types, so you'll need to do a null check first.
if (x != null && y != null) {
println(x * y) // Works, x and y are smart-cast to Int
}