static function helloIf(): void {
  if (true) {
  }

  if (true) {

  } else if (true) {

  } else {

  }
}

static function helloThrow() : void {
  throw {};
}

static function helloForBreak() : void {
  for (var item : ["1","2"]) {
    break;
  }
}

static function helloWhile() : void {
  while (true) {
    break;
  }
}

static function helloDeclare() : void {
  var hello = "world";
  var helloNull: string = null;
  hello = "hehe";
}
model Config = {};
init(config: Config);

api hello(): void {
  __request.method = 'GET';
  __request.pathname = '/';
  __request.headers = {
    host = 'www.test.com',
  };
  var host: string = __request.headers.host;
  if (true) {
    __request.headers.host = 'www.test2.com';
  }
} returns {
  helloIf();
  return;
}
