Files
swift-mirror/test/IDE/complete_inout.swift
2024-08-08 19:35:00 +02: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(withInout: &self.#^COMPLETE_INOUT?check=CHECK^#)
let context = Bar(withPointer: &self.#^COMPLETE_POINTER?check=CHECK^#)
}
}
// CHECK: Decl[InstanceVar]/CurrNominal: myInt[#Int#]; name=myInt