mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Capability couldn't be determined for expressions like that which means that inference should be delayed until root becomes available. Resolves: https://github.com/apple/swift/issues/69936
14 lines
358 B
Swift
14 lines
358 B
Swift
// RUN: %batch-code-completion
|
|
|
|
struct Test {
|
|
var currentHeight: Int
|
|
|
|
func subscribeToKeyboardEvents() {
|
|
objectAndKeyPath(object: self, keyPath: \.#^COMPLETE^#)
|
|
}
|
|
}
|
|
|
|
func objectAndKeyPath<Root, Input>(object: Root, keyPath: WritableKeyPath<Root, Input>) {}
|
|
|
|
// COMPLETE: Decl[InstanceVar]/CurrNominal: currentHeight[#Int#]; name=currentHeight
|