<@U0L8CS35L>: Yes, it's syntax sugar. Check out th...
# announcements
c
@douglarek: Yes, it's syntax sugar. Check out the type of
x
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.
Copy code
if (x != null && y != null) {
  println(x * y) // Works, x and y are smart-cast to Int
}