Skip to content

Commit dff221d

Browse files
authored
Merge pull request #32477 from slavapestov/regression-test-sr1329
Add regression test for https://bugs.swift.org/browse/SR-1329
2 parents ee41df0 + 989f4e1 commit dff221d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// RUN: %target-swift-frontend -emit-ir %s -disable-objc-attr-requires-foundation-module
2+
// REQUIRES: objc_interop
3+
4+
@objc protocol TestProtocol {
5+
func foo(i: Int)
6+
}
7+
8+
class Test : TestProtocol {
9+
@objc func foo(i: Int) {
10+
}
11+
}
12+
13+
func bar(t: TestProtocol?) {
14+
let foofunc = t?.foo
15+
foofunc?(5)
16+
}

0 commit comments

Comments
 (0)