class Program {
  void foo() {
    int a;
    a = 0;
    // missing closing brace
  void main() {
    int b;
  }
}

