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.
1 parent 284c573 commit 905ebdfCopy full SHA for 905ebdf
test/Interop/Cxx/foreign-reference/extensions.swift
@@ -3,10 +3,30 @@
3
4
import ReferenceCounted
5
6
+protocol MyProto {
7
+ func foo() -> Self
8
+ func bar() -> Self
9
+}
10
+
11
extension NS.LocalCount {
12
static func g() {}
13
14
public func f() {
15
Self.g()
16
}
17
18
19
+extension NS.LocalCount {
20
+ public func foo() -> Self {
21
+ return self
22
+ }
23
24
+ public func bar() -> NS.LocalCount {
25
26
27
28
29
+let x = NS.LocalCount.create()
30
+x.f()
31
+let _ = x.foo()
32
+let _ = x.bar()
0 commit comments