Files
swift-mirror/test/Parse/implicit_getter_incomplete.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

19 lines
510 B
Swift

// RUN: %target-typecheck-verify-swift
func test1() {
var a : Int {
#if arch(x86_64)
return 0
#else
return 1
#endif
}
}
// Would trigger assertion when AST verifier checks source ranges ("child source range not contained within its parent")
func test2() { // expected-note {{match}}
var a : Int { // expected-note {{match}}
switch i { // expected-error {{unresolved identifier}}
} // expected-error {{'switch' statement body must have at least one}}
// expected-error@+1 2 {{expected '}'}}