Skip to content

Commit 905ebdf

Browse files
author
Gabor Horvath
committed
Address review comments.
1 parent 284c573 commit 905ebdf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/Interop/Cxx/foreign-reference/extensions.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,30 @@
33

44
import ReferenceCounted
55

6+
protocol MyProto {
7+
func foo() -> Self
8+
func bar() -> Self
9+
}
10+
611
extension NS.LocalCount {
712
static func g() {}
813

914
public func f() {
1015
Self.g()
1116
}
1217
}
18+
19+
extension NS.LocalCount {
20+
public func foo() -> Self {
21+
return self
22+
}
23+
24+
public func bar() -> NS.LocalCount {
25+
return self
26+
}
27+
}
28+
29+
let x = NS.LocalCount.create()
30+
x.f()
31+
let _ = x.foo()
32+
let _ = x.bar()

0 commit comments

Comments
 (0)