Files
swift-mirror/test/parse_in_library.swift
2012-04-18 01:50:24 +00:00

7 lines
214 B
Swift

// RUN: %swift %s -parse-as-library -verify
print(10) // expected-error {{expressions are not allowed at the top level}}
if (true) { // expected-error {{statments are not allowed at the top level}}
print(10)
}