In the first one the string is just a statement, s...
# announcements
k
In the first one the string is just a statement, similar to how you could call a function that returns something. Second and third use the fact that the last expression in a body can be interpreted as a return statement, second works because
String : CharSequence
. Last one doesn't because
String !: Int
.