mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
393 B
Swift
17 lines
393 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
|
|
|
|
import SwiftUI
|
|
|
|
var foo = doesntExist // expected-error {{cannot find 'doesntExist' in scope}}
|
|
|
|
struct ContentView: View {
|
|
var body: some View {
|
|
VStack {
|
|
Text(verbatim: foo)
|
|
}
|
|
}
|
|
}
|