Files
swift-mirror/validation-test/Sema/SwiftUI/rdar70880670.swift

17 lines
419 B
Swift

// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5
// REQUIRES: objc_interop
// REQUIRES: OS=macosx
// https://github.com/swiftlang/swift/issues/79255
// REQUIRES: rdar141262107
import SwiftUI
var foo = doesntExist // expected-error {{cannot find 'doesntExist' in scope}}
struct ContentView: View {
var body: some View {
VStack {
Text(verbatim: foo)
}
}
}