Skip to content

Commit 7ad9cbe

Browse files
authored
Merge pull request #9624 from xedin/rdar-32101765
[QoI] Improve diagnostics for Smart KeyPath
2 parents 1d317b2 + 8e8ead3 commit 7ad9cbe

File tree

3 files changed

+435
-0
lines changed

3 files changed

+435
-0
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ ERROR(expr_swift_keypath_invalid_component,none,
445445
"invalid component of Swift key path", ())
446446
ERROR(expr_swift_keypath_not_starting_with_type,none,
447447
"a Swift key path must begin with a type", ())
448+
ERROR(expr_smart_keypath_value_covert_to_contextual_type,none,
449+
"KeyPath value type %0 cannot be converted to contextual type %1",
450+
(Type, Type))
448451

449452
// Selector expressions.
450453
ERROR(expr_selector_no_objc_runtime,none,

0 commit comments

Comments
 (0)