mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Instead of writing in an awkward special case for SemiStmt in ParseStmt, apply the existing semicolon-eating syntax in ParseDecl for types to the toplevel. Suggested by Jordan re: r3336. Swift SVN r3342
5 lines
139 B
Swift
5 lines
139 B
Swift
// RUN: %swift -parse -verify -parse-as-library %s
|
|
|
|
// make sure trailing semicolons are valid syntax in toplevel library code.
|
|
var x:Int;
|