mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
283 B
Swift
12 lines
283 B
Swift
// RUN: %swift %s -parse-as-library -verify
|
|
|
|
//===--- Recovery for extra braces at top level.
|
|
//===--- Keep this test the first one in the file.
|
|
|
|
} // expected-error{{extraneous '}' at top level}} {{1-2=}}
|
|
|
|
func foo() {}
|
|
|
|
} // expected-error{{extraneous '}' at top level}} {{1-2=}}
|
|
|