Skip to content

Commit f48df2d

Browse files
committed
Add test case for SR-10753
1 parent d0c727d commit f48df2d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/attr/attr_dynamic_callable.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,3 +457,13 @@ func test10313() {
457457
box.dictionary["bool"] = false
458458
let _: Bool = try! box("bool") // ok
459459
}
460+
461+
// SR-10753
462+
463+
@dynamicCallable
464+
struct B {
465+
public func dynamicallyCall(withArguments arguments: [String]) {}
466+
}
467+
468+
B()("hello") // ok
469+
B()("\(1)") // ok

0 commit comments

Comments
 (0)