blob: 8abf795ce20db7bc0fe9977a0c7c607390ae0581 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -parse-as-library
//===--- Recovery for extra braces at top level.
//===--- Keep this test the first one in the file.
// Check that we handle multiple consecutive right braces.
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
func foo() {}
// Check that we handle multiple consecutive right braces.
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
func bar() {}
//===--- Recovery for extra braces at top level.
//===--- Keep this test the last one in the file.
// Check that we handle multiple consecutive right braces.
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
} // expected-error{{extraneous '}' at top level}} {{1-3=}}