Files
swift-mirror/test/IDE/complete_issue-69936.swift
Pavel Yaskevich 72bb74aa4f [ConstraintSystem] Key path literals with completion tokens should be marked as invalid
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
2023-11-16 15:48:46 -08:00

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