Files
swift-mirror/validation-test/Sema/SwiftUI/rdar70880670.swift
2020-11-04 16:19:51 -08:00

16 lines
337 B
Swift

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