mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
414 B
Swift
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 |