Skip to content

Commit b6e8eb6

Browse files
---
yaml --- r: 326495 b: refs/heads/tensorflow c: a7b5f71 h: refs/heads/master i: 326493: 1029c7b 326491: 991ff80 326487: 7634fed 326479: 158c155 326463: a321eef
1 parent a8ede51 commit b6e8eb6

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819-
refs/heads/tensorflow: df14698efd00a482fdbcd4a786f3b88aa0c4ce69
819+
refs/heads/tensorflow: a7b5f714e4a207b63a571190cad4aa1e122efa36
820820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ERROR(could_not_find_value_member_corrected,none,
8282
"value of type %0 has no member %1; did you mean %2?",
8383
(Type, DeclName, DeclName))
8484
ERROR(could_not_find_value_dynamic_member_corrected,none,
85-
"neither the value type %0 and dynamic key path subscript of type %1 has a member %2; did you mean %3?",
85+
"value of type %0 has no dynamic member %2 using key path from root type %1; did you mean %3?",
8686
(Type, Type, DeclName, DeclName))
8787

8888
ERROR(could_not_find_type_member,none,

branches/tensorflow/lib/Sema/CSDiagnostics.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2319,7 +2319,6 @@ bool MissingMemberFailure::diagnoseAsError() {
23192319
diagnostic.highlight(baseExpr->getSourceRange())
23202320
.highlight(nameLoc.getSourceRange());
23212321
correction->addFixits(diagnostic);
2322-
23232322
} else {
23242323
auto diagnostic = emitDiagnostic(
23252324
anchor->getLoc(),

branches/tensorflow/test/attr/attr_dynamic_member_lookup.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ struct SR10597_W<T> {
704704
var wooo: SR10597 { SR10597() } // expected-note {{declared here}}
705705
}
706706

707-
_ = SR10597_W<SR10597>(SR10597()).wooooo // expected-error {{neither the value type 'SR10597_W<SR10597>' and dynamic key path subscript of type 'SR10597' has a member 'wooooo'; did you mean 'wooo'?}}
707+
_ = SR10597_W<SR10597>(SR10597()).wooooo // expected-error {{value of type 'SR10597_W<SR10597>' has no dynamic member 'wooooo' using key path from root type 'SR10597'; did you mean 'wooo'?}}
708708

709709
final class SR10597_1 {
710710
var woo: Int? // expected-note 2 {{'woo' declared here}}
@@ -719,4 +719,4 @@ struct SR10597_1_W<T> {
719719
}
720720
}
721721

722-
_ = SR10597_1_W<SR10597_1>(SR10597_1()).wooo // expected-error {{neither the value type 'SR10597_1_W<SR10597_1>' and dynamic key path subscript of type 'SR10597_1' has a member 'wooo'; did you mean 'woo'?}}
722+
_ = SR10597_1_W<SR10597_1>(SR10597_1()).wooo // expected-error {{value of type 'SR10597_1_W<SR10597_1>' has no dynamic member 'wooooo' using key path from root type 'SR10597_1'; did you mean 'woo'?}}

0 commit comments

Comments
 (0)