We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
inout
1 parent b0bade6 commit bfa1015Copy full SHA for bfa1015
test/IDE/complete_inout.swift
@@ -0,0 +1,18 @@
1
+// RUN: %empty-directory(%t)
2
+// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
3
+
4
+struct Bar() {
5
+ init?(withInout: inout Int) {}
6
+ init?(withPointer: UnsafePointer<Int>) {}
7
+}
8
9
+struct Foo {
10
+ var myInt: Int
11
12
+ func bar() {
13
+ let context = Bar(wihtInout: &self.#^COMPLETE_INOUT?check=CHECK^#)
14
+ let context = Bar(withPointer: &self.#^COMPLETE_POINTER?check=CHECK^#)
15
+ }
16
17
18
+// CHECK: Decl[InstanceVar]/CurrNominal: myInt[#Int#]; name=myInt
0 commit comments