Files
swift-mirror/test/Parse/toplevel_library.swift
Joe Groff 759f18a329 Consume trailing semicolons at top level.
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
2012-12-04 00:21:50 +00:00

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;