Files
swift-mirror/test/IDE/complete_inout.swift
Alex Hoppen a5a17aa955 [tests] Add a %batch-code-completion lit substitution
I could never remember the command to run batch code completion tests. Add a lit substitution for it.
2023-09-18 13:57:49 -07:00

17 lines
414 B
Swift

// RUN: %batch-code-completion
struct Bar() {
init?(withInout: inout Int) {}
init?(withPointer: UnsafePointer<Int>) {}
}
struct Foo {
var myInt: Int
func bar() {
let context = Bar(wihtInout: &self.#^COMPLETE_INOUT?check=CHECK^#)
let context = Bar(withPointer: &self.#^COMPLETE_POINTER?check=CHECK^#)
}
}
// CHECK: Decl[InstanceVar]/CurrNominal: myInt[#Int#]; name=myInt