fun returnFunction() {
  var outside = "outside";

  fun inner() {
    print outside;
  }

  return inner;
}

var fn = returnFunction();
fn();

fun outerFunction() {
  fun localFunction() {
    print "I'm local!";
  }

  localFunction();
}