Skip to content

Commit 83c74a7

Browse files
committed
[Syntax][test] Add #selector and #keyPath to syntax parsing tests
1 parent 3cd5d8f commit 83c74a7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/SwiftSyntax/ParseFile.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ struct Foo {
1414
private(set) var y: [Bool]
1515
}
1616

17+
class Test: NSObject {
18+
@objc var bar: Int
19+
func test() {
20+
print(#selector(function))
21+
print(#keyPath(bar))
22+
}
23+
@objc func function() {
24+
}
25+
}
26+
1727
ParseFile.test("ParseSingleFile") {
1828
let currentFile = URL(fileURLWithPath: #file)
1929
expectDoesNotThrow({

0 commit comments

Comments
 (0)