Currently `x` has type `() -> Int`. If you want...
# announcements
n
Currently
x
has type
() -> Int
. If you want
x
to be an
Int
, call
invoke()
on the function:
Copy code
val x = {
  val y = 1
  val z = 2
  y + z
}.invoke()