// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5 -plugin-path %swift-plugin-dir
// 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)
    }
  }
}
