Skip to content

Commit 1087adb

Browse files
committed
The error is right: these should be @objc.
1 parent b864a74 commit 1087adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stdlib/KVOKeyPaths.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ print("target removed")
115115
//===----------------------------------------------------------------------===//
116116

117117
class Target2 : NSObject, NSKeyValueObservingCustomization {
118-
dynamic var name: String?
118+
@objc dynamic var name: String?
119119

120120
class Dummy : NSObject {
121-
dynamic var name: String?
121+
@objc dynamic var name: String?
122122
}
123123

124124
// In both of the callbacks, observe another property with the same key path.

0 commit comments

Comments
 (0)